ID: 32205 Updated by: [EMAIL PROTECTED] Reported By: mvh at list dot ru -Status: Open +Status: Bogus Bug Type: *Network Functions Operating System: Windows XP pro PHP Version: 4.3.8 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2005-03-06 15:56:05] mvh at list dot ru 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 this bug report at http://bugs.php.net/?id=32205&edit=1