PHP 4.0 Bug #8042 Updated: Socket read failure
| From: | sniper@php.net | Date: | Fri, 01 Dec 2000 02:15:15 +0000 |
| Subject: | PHP 4.0 Bug #8042 Updated: Socket read failure | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39751@lists.php.net to get a copy of this message | ||
ID: 8042
Updated by: sniper
Reported By: telastyn@ideology.com
Status: Bogus
Bug Type: Sockets related
Assigned To:
Comments:
same as #8028
Previous Comments:
---------------------------------------------------------------------------
[2000-11-30 00:28:42] telastyn@ideology.com
Using 2 NetBSD 1.4.2 machines running PHP4.0.2 and 4.0.3pl1 respectively are running the same script
which looks like this:
<?
set_time_limit(0);
[socket]
[connect 0.0.0.0 port foo]
[send info]
[recieve info]
[send instructions]
echo "beginning reception.n";
while (1){
read($net_fd,$net_buf,2048);
echo $net_buf;
}
[close]
?>
I acknowledge the ugliness of such code, it should yet be functional. In PHP 4.0.2 it works as
expected, recieving all information back, and echoing to html or console (was tested on console). In
PHP 4.0.3pl1 it recieves no information at the actual code portion listed above. It returns no
error, but reads no information.
The service was tested with plain ol' telnet and with a c program, neither of which had any
difficulty on either machine. Both PHP's are compiled with sockets enabled. Also works on
RedHat 7.0 PHP 4.0.2.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8042