ID: 15430
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
I have currently the same problem with PHP 4.1.1. However, when I put
the sleep(1) statement IN FRONT of the fgets() or fgetc(), my code
works even with non-blocking sockets (it's annoying but it works).
Maybe this helps you for now (until this bug has been fixed).
Previous Comments:
------------------------------------------------------------------------
[2002-02-07 09:43:51] [EMAIL PROTECTED]
I'm using Apache1.3.22/PHP4.1.1 on Windows 2000.
When I use socket_set_blocking($fp, FALSE); PHP doesn't read any more
data from the socket:
...
do {
if ($ch=fgetc($fp))
echo dechex(ord($ch))." ";
...
if ($ch==chr(0x2A)) {
...
}
sleep(1);
...
} while (1);
...
This does work with socket blocking enabled but with socket blocking
disabled I don't get any more data in my PHP-Script !
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15430&edit=1