#40680 [Opn->Bgs]: process hangs after reaching set_time_limit() value

From: Date: Thu, 01 Mar 2007 11:08:14 +0000
Subject: #40680 [Opn->Bgs]: process hangs after reaching set_time_limit() value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109743@lists.php.net to get a copy of this message
ID: 40680 Updated by: tony2001@php.net Reported By: acv dot number dot one at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux FC 5 PHP Version: 5.2.1 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2007-03-01 10:14:02] acv dot number dot one at gmail dot com 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 this bug report at http://bugs.php.net/?id=40680&edit=1

« previous php.bugs (#109743) next »