From: cyberline at techno4ever dot net Operating system: Suse 9.2/3 PHP version: 5.0.4 PHP Bug Type: Sockets related Bug description: fsockopen() timeout parameter has no function
Description: ------------ When i set a timelimit for fsockopen() the script won't stop after the limit reaches. Reproduce code: --------------- if($fp = fsockopen($host, $port, &$errno, &$errnum, 2)) { ... } Expected result: ---------------- When the checked host is offline, the script reported that afetr 2 seconds. Actual result: -------------- The Script is stopping after 60 seconds. -- Edit bug report at http://bugs.php.net/?id=33960&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33960&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33960&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33960&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33960&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33960&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33960&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33960&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33960&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33960&r=support Expected behavior: http://bugs.php.net/fix.php?id=33960&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33960&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33960&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33960&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33960&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33960&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33960&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33960&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33960&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33960&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33960&r=mysqlcfg