|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10937 Interface to execl(), execv()
Submitted: 2001-05-17 13:32 UTC Modified: 2014-12-28 17:32 UTC
Avg. Score:4.2 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: kc834 at blu32 dot com Assigned: kalle (profile)
Status: Closed Package: Program Execution
PHP Version: * OS: *
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.
Bug Type:
From: kc834 at blu32 dot com
New email:
PHP Version: OS:


 [2001-05-17 13:32 UTC] kc834 at blu32 dot com
It would be very helpful if you implemented a command that could be used to execute an external program without using the shell.  Such a feature would be useful in the following cases:

1) if another hole is discovered in EscapeShellCmd()
2) if the web server is being run in a chrooted environment, or in another situation in which /bin/sh access is forbidden or undesirable
3) if the user wishes to avoid the overhead of running the shell when a simple execl() would suffice
4) when individual arguments to a user program contain spaces or other characters that could be mangled by the shell and require special treatment (ex. execl("/bin/foo", "foo", "hello \"world", NULL) is a pain in the neck to do right now)
5) if for no other reason, than to make PHP more competitive with Perl, which does have this feature.  it's not too hard to do.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-31 20:35 UTC]
-Package: Feature/Change Request +Package: Program Execution -Operating System: Linux 2.2 +Operating System: * -PHP Version: 4.0.5 +PHP Version: *
 [2010-12-31 21:20 UTC]
-Summary: Interface to execl() library call +Summary: Interface to execl(), execv()
 [2010-12-31 21:20 UTC]
See also bug #13843
 [2014-12-28 17:32 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2014-12-28 17:32 UTC]
Closing in favour of bug #13843
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 16:01:27 2023 UTC