|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-29 20:25 UTC] telastyn at ideology dot com
[2000-12-12 05:53 UTC] sterling@php.net
[2000-12-13 00:35 UTC] telastyn at ideology dot com
[2000-12-13 01:10 UTC] ronabop@php.net
[2001-06-02 21:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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.