note 93510 added to function.ignore-user-abort

From: Date: Mon, 14 Sep 2009 07:22:00 +0000
Subject: note 93510 added to function.ignore-user-abort
Groups: php.notes 
Request: Send a blank email to php-notes+get-160530@lists.php.net to get a copy of this message
Comment from Anonymous is not 100% valid. Time from sleep function is not counted to execution time because sleep delays program execution (see http://www.php.net/manual/en/function.sleep.php and comments). We tested it and it's true. Try this: <?php set_time_limit(2); sleep(4); echo 'hi!'; sleep(4); echo 'bye bye!'; ?> It means, that if the loop most of the time will be at sleep (and in this case it probably be), then this script may be active for months or years even if you set time limit to one day. ---- Server IP: 69.147.83.197 Probable Submitter: 78.80.33.187 ---- Manual Page -- http://www.php.net/manual/en/function.ignore-user-abort.php Edit -- https://master.php.net/note/edit/93510 Del: integrated -- https://master.php.net/note/delete/93510/integrated Del: useless -- https://master.php.net/note/delete/93510/useless Del: bad code -- https://master.php.net/note/delete/93510/bad+code Del: spam -- https://master.php.net/note/delete/93510/spam Del: non-english -- https://master.php.net/note/delete/93510/non-english Del: in docs -- https://master.php.net/note/delete/93510/in+docs Del: other reasons-- https://master.php.net/note/delete/93510 Reject -- https://master.php.net/note/reject/93510 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160530) next »