From: mvh at list dot ru Operating system: Windows XP pro PHP version: 4.3.8 PHP Bug Type: *Network Functions Bug description: .
Description: ------------ register_shutdown_function() is not correct work with fsockopen() only for windows. ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... Reproduce code: --------------- <?php set_time_limit(5); function Shutdown() { touch('c:\\qwe.txt'); } register_shutdown_function('Shutdown'); while (true) { $fp = fsockopen('dawjadlhi.ru', 80, $e, $en, 5); fclose($fp); } ?> Expected result: ---------------- Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 10 Actual result: -------------- Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 10 !!!!!---------------------------------------- Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 3 !!!!!---------------------------------------- -- Edit bug report at http://bugs.php.net/?id=32205&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32205&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32205&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32205&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32205&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32205&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32205&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32205&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32205&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32205&r=support Expected behavior: http://bugs.php.net/fix.php?id=32205&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32205&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32205&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32205&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32205&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32205&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32205&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32205&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32205&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32205&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32205&r=mysqlcfg