Bug #17013 Updated: sleep function doesnt work correctly
| From: | jan@php.net | Date: | Sun, 05 May 2002 13:22:51 +0000 |
| Subject: | Bug #17013 Updated: sleep function doesnt work correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6951@lists.php.net to get a copy of this message | ||
ID: 17013
Updated by: jan@php.net
Reported By: jandevries146@noknok.nl
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: win ME
PHP Version: 4.2.0
New Comment:
please read http://www.php.net/manual/en/function.set-time-limit.php
no bug, no documantation problem -> bogus
Previous Comments:
------------------------------------------------------------------------
[2002-05-05 09:06:33] jandevries146@noknok.nl
The time limit doesnt work correctly
when PHP sleeps this time IS included when determining the maximum time
that the script has been running
the manual states:
The set_time_limit() function and the configuration directive
max_execution_time only affect the execution time of the script itself.
Any time spent on activity that happens outside the execution of the
script such as system calls using system(), the sleep() function,
database queries, etc. is not included when determining the maximum
time that the script has been running.
if you want to reproduce the problem just run this few lines
and you will see it never never echos "after sleep"
<?php
echo "before sleep";
set_time_limit(5);
sleep(6);
echo "after sleep";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17013&edit=1