#39937 [NEW]: max_execution_time / set_time_limit could use better documentation

From: Date: Sat, 23 Dec 2006 15:04:25 +0000
Subject: #39937 [NEW]: max_execution_time / set_time_limit could use better documentation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106821@lists.php.net to get a copy of this message
From: mike503+php at gmail dot com Operating system: Linux PHP version: 5.2.0 PHP Bug Type: CGI related Bug description: max_execution_time / set_time_limit could use better documentation 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 bug report at http://bugs.php.net/?id=39937&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39937&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39937&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39937&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39937&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39937&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39937&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39937&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39937&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39937&r=support Expected behavior: http://bugs.php.net/fix.php?id=39937&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39937&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39937&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39937&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39937&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39937&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39937&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39937&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39937&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39937&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39937&r=mysqlcfg

« previous php.bugs (#106821) next »