#40680 [NEW]: process hangs after reaching set_time_limit() value
| From: | acv dot number dot one at gmail dot com | Date: | Thu, 01 Mar 2007 10:14:02 +0000 |
| Subject: | #40680 [NEW]: process hangs after reaching set_time_limit() value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-109741@lists.php.net to get a copy of this message | ||
From: acv dot number dot one at gmail dot com
Operating system: Linux FC 5
PHP version: 5.2.1
PHP Bug Type: Scripting Engine problem
Bug description: process hangs after reaching set_time_limit() value
Description:
------------
NOTE: I use php version
PHP 5.1.4 (cli) (built: May 8 2006 08:41:41)
but it is not listed there. should I update it? I think it is for all 5.*
versions.
Process hangs after reaching set_time_limit() value.
After the script executes, the php process which processed it hangs and
the CPU% used remains the same (no resources freeing).
Reproduce code:
---------------
<?php
set_time_limit(30);
while(1)
{
a_function();
} //Call to a function which doesn't affect the "time run" value for the
script.
?>
Expected result:
----------------
I expect the script to finish executing after 30 seconds + time needed for
the called (e.g. system call) function.
Actual result:
--------------
The script runs for 30 seconds, but if at the moment the 30 seconds
interval passes the called funciton is executed (e.g. system call) - the
process hangs (the interpreter hangs in that funciton)
--
Edit bug report at http://bugs.php.net/?id=40680&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40680&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40680&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40680&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40680&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40680&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40680&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40680&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40680&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40680&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40680&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40680&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40680&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40680&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40680&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40680&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40680&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40680&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40680&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40680&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40680&r=mysqlcfg