php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65493 set_time_limit not affect shell_exec function
Submitted: 2013-08-21 08:39 UTC Modified: 2013-08-21 09:34 UTC
From: chaced at gmail dot com Assigned:
Status: Wont fix Package: CGI/CLI related
PHP Version: 5.4.18 OS: linux debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chaced at gmail dot com
New email:
PHP Version: OS:

 

 [2013-08-21 08:39 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-21 09:34 UTC] ab@php.net
-Status: Open +Status: Wont fix
 [2013-08-21 09:34 UTC] ab@php.net
Executed process will block. Some workaround might be using pcntl.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC