php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45073 ?
Submitted: 2008-05-22 22:53 UTC Modified: 2008-05-25 11:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gogulas at wp dot pl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.6 OS: windows/unix
Private report: No CVE-ID: None
 [2008-05-22 22:53 UTC] gogulas at wp dot pl
Description:
------------
HELLo
This is not a bug.

time when funcion sleep() holding script, (aswell as for example sql querty), dosnt include to total script execute time, so if we set max execution time in php.ini for example 60 sec. the sleep(9999); will hold script for 9999 seconds.
So
<?
while(memory<8or16or24or32)$a.=1;
sleep(99999);
?>
run it xxxx times :P

IMO next versions of php shouldnt exclude sleep() from max_execution_time.
Realy, who need this for anything except crackers? :P




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-25 11:59 UTC] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Sleep means sleep and execution time means time of execution. If you want run time then use timing functionality.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC