#39937 [Opn->Bgs]: max_execution_time / set_time_limit could use better documentation
| From: | vrana@php.net | Date: | Sun, 25 Mar 2007 19:36:35 +0000 |
| Subject: | #39937 [Opn->Bgs]: max_execution_time / set_time_limit could use better documentation | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969375901@lists.php.net to get a copy of this message | ||
ID: 39937
Updated by: vrana@php.net
Reported By: mike503+php at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 5.2.0
New Comment:
Already documented: "Any time spent on activity that happens outside
the execution of the script such as system calls using system(), stream
operations, database queries, etc. is not included when determining the
maximum time that the script has been running."
There is no function for limiting human seconds AFAIK.
Previous Comments:
------------------------------------------------------------------------
[2006-12-23 15:04:25] mike503+php at gmail dot com
Description:
------------
The manual does not clearly state how the seconds are determined for
set_time_limit and max_execution_time - it keeps saying "seconds" - but
on many of my apps i do not use sleep() or anything that shouldn't count
as part of the timeout, yet it seems to never timeout; even with
set_time_limit(20) set. something that low should be okay, but it
doesn't appear to be.
for instance in a script i have, i set_time_limit(20) - and the script
normally takes at lest 2-5 minutes of actual time to run. it uses curl a
lot and string work; no sleep() involved
when i exit the script i see this:
real 0m52.776s
user 0m0.084s
sys 0m0.078s
it far surpassed "real" time - but apparently did not use much user/sys
time. is that the reason for it not terminating yet? does it need to use
20 seconds of "user" time? is there any way for a function to be defined
or a parameter to be added to tell it to measure in actual script
execution time (without any concern for sleep() or external system calls
or anything - flat out limiting how long a script runs based on human
seconds?)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39937&edit=1