Bug #65493 [Opn->Wfx]: set_time_limit not affect shell_exec function
| From: | ab@php.net | Date: | Wed, 21 Aug 2013 09:34:45 +0000 |
| Subject: | Bug #65493 [Opn->Wfx]: set_time_limit not affect shell_exec function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181086@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65493&edit=1
ID: 65493
Updated by: ab@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