ID: 14261 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Sockets related Operating System: RedHat 7.1 Old PHP Version: 4.0.6 PHP Version: 4.0.6, 4.1.0RC3 New Comment:
#!/usr/local/bin/php -q <? $ipaddress = "udp://192.168.0.1"; $port = 7; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> Responds "UP" when it should timeout and respond "DOWN". ------------------------- Tried 4.1.0 RC3 on several x86 machines, same problem. Previous Comments: ------------------------------------------------------------------------ [2001-11-28 01:27:02] [EMAIL PROTECTED] There were some fixes related to this. Could you possibly try the latest 4.1.0 RC from www.php.net/~zeev/php-4.1.0RC3.tar.gz ? If it's fixed there, you can use the soon-to-be-released 4.1.0 version. Derick ------------------------------------------------------------------------ [2001-11-27 22:28:31] [EMAIL PROTECTED] #!/usr/local/bin/php -q <? $ipaddress = "udp://192.168.0.1"; $port = 7; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> Responds "UP" when it should timeout and respond "DOWN". ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14261&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]