Bug #14261: fsockopen w/ udp responds incorrectly

From: Date: Wed, 28 Nov 2001 03:28:32 +0000
Subject: Bug #14261: fsockopen w/ udp responds incorrectly
Groups: php.dev 
Request: Send a blank email to php-dev+get-71878@lists.php.net to get a copy of this message
From: doubledomegenius@aol.com Operating system: RedHat 7.1 PHP version: 4.0.6 PHP Bug Type: Sockets related Bug description: fsockopen w/ udp responds incorrectly #!/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 bug report at: http://bugs.php.net/?id=14261&edit=1

« previous php.dev (#71878) next »