Does anyone know of any significant changes to the fgets() function in
php-4.3.0pre2 which might affect reading from a socket a single byte at
a time in the way I describe below? I've had to change to using fread()
instead, which is fine, but I'd like to know why I've had to do this,
and whether th
An application I am developing contains something like the following:
$this->socket = fsockopen($server, $port, $errnum, $errstr, "60");
...
while (!feof($this->socket)) {
$char = fgets($this->socket,1);
if (($char == "\n") || ($char == "\r"))
return $buffer;
}
$buffer .=
Hello,
PHP 4.3.0pre2 is available for download from http://qa.php.net. This
second pre-release incorporates a large number of bug fixes since the
first one. Still, to help us catch as many bugs as possible, please
download it and start testing.
-Andrei http:/
3 matches
Mail list logo