Bug #12360: fsockopen timeout doesn't work

From: Date: Wed, 25 Jul 2001 11:08:38 +0000
Subject: Bug #12360: fsockopen timeout doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-60943@lists.php.net to get a copy of this message
From: hordur@modernus.is Operating system: RedHat 6.2 PHP version: 4.0.6 PHP Bug Type: Sockets related Bug description: fsockopen timeout doesn't work When I try to connect to a port on a server that isn't reachable or the packets are dropped the timeout doesn't work... This worked when I was using PHP 4.0.4pl1 #!/usr/local/bin/php <?php echo "opening socket... \n"; fsockopen("microsoft.com", 12, $errno, $errstr, 5.0); echo "$errno\n$errstr\n"; echo "done!\n"; ?> I have also tried this on a Red Hat 7.1 machine and it's just the samee there... My configure line: './configure' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' '--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/' -- Edit bug report at: http://bugs.php.net/?id=12360&edit=1

« previous php.dev (#60943) next »