Edit report at https://bugs.php.net/bug.php?id=65493&edit=1
ID: 65493 Updated by: a...@php.net Reported by: chaced at gmail dot com Summary: set_time_limit not affect shell_exec function -Status: Open +Status: Wont fix Type: Bug Package: CGI/CLI related Operating System: linux debian PHP Version: 5.4.18 Block user comment: N Private report: N New Comment: Executed process will block. Some workaround might be using pcntl. Previous Comments: ------------------------------------------------------------------------ [2013-08-21 08:39:13] chaced at gmail dot com Description: ------------ set_time_limit can't kill a process launched with shell_exec function. Test script: --------------- <? set_time_limit(10); shell_exec("/bin/sleep 30"); Expected result: ---------------- time php test.php real 0m10.032s user 0m0.012s sys 0m0.016s Actual result: -------------- time php test.php real 0m30.032s user 0m0.012s sys 0m0.016s ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65493&edit=1