Bug #17013 [Com]: sleep function doesnt work correctly

From: Date: Wed, 01 Sep 2021 18:45:53 +0000
Subject: Bug #17013 [Com]: sleep function doesnt work correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236287@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=17013&edit=1 ID: 17013 Comment by: lildurk17013 at gmail dot com Reported by: jandevries146 at noknok dot nl Summary: sleep function doesnt work correctly Status: Not a bug Type: Bug Package: Reproducible crash Operating System: win ME PHP Version: 4.2.0 Block user comment: N Private report: N New Comment: Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults aged 19 and older. We’re an exclusively online retailer and wholesaler for recreational cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe our work is meaningful and we take pride in our mandate to promote the socially responsible use of legal cannabis. https://lildurk.com/ Previous Comments: ------------------------------------------------------------------------ [2002-05-05 09:22:51] jan@php.net please read http://www.php.net/manual/en/function.set-time-limit.php no bug, no documantation problem -> bogus ------------------------------------------------------------------------ [2002-05-05 09:06:33] jandevries146 at noknok dot 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 https://bugs.php.net/bug.php?id=17013&edit=1

« previous php.bugs (#236287) next »