php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17160 sleep() * usleep() bypass set_time_limit()
Submitted: 2002-05-12 10:03 UTC Modified: 2002-06-18 07:59 UTC
From: ilia at prohost dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.0 OS: Linux 2.4.18
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ilia at prohost dot org
New email:
PHP Version: OS:

 

 [2002-05-12 10:03 UTC] ilia at prohost dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-12 10:21 UTC] rasmus@php.net
Pretty much documented and by design.  I don't see anything that needs fixing here.
 [2002-06-18 07:55 UTC] hholzgra@php.net
max_execution_time limits use of CPU time,
not real time, sleep() and usleep() don't use
any CPU, so ...
 [2002-06-18 07:59 UTC] mfischer@php.net
I think hartmut explained this well and it should be noted in the documentation were appropriate
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 23:01:32 2025 UTC