| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-03-06 16:04 UTC] derick@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 04:00:01 2025 UTC | 
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 !!!!!----------------------------------------