Bug #17160 Updated: sleep() * usleep() bypass set_time_limit()
| From: | hholzgra@php.net | Date: | Tue, 18 Jun 2002 11:55:45 +0000 |
| Subject: | Bug #17160 Updated: sleep() * usleep() bypass set_time_limit() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11127@lists.php.net to get a copy of this message | ||
ID: 17160
Updated by: hholzgra@php.net
Reported By: ilia@prohost.org
-Status: Suspended
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux 2.4.18
PHP Version: 4.2.0
New Comment:
max_execution_time limits use of CPU time,
not real time, sleep() and usleep() don't use
any CPU, so ...
Previous Comments:
------------------------------------------------------------------------
[2002-05-12 10:21:04] rasmus@php.net
Pretty much documented and by design. I don't see anything that needs
fixing here.
------------------------------------------------------------------------
[2002-05-12 10:03:25] ilia@prohost.org
PHP's sleep & usleep() functions can be used to bypass set_time_limit()
and allow a script to sleep forever thus taking up a webserver
thread/process for an unlimited period of time.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17160&edit=1