|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-01 11:08 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
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)