This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
Add a safe exec
function #461
Open
Description
I'm kind of surprised this doesn't already exist in the PHP world, but we should have a safe and easy to use implementation of exec
. Facebook has a good implementation internally that can be used like execx('echo %s', 'foo;rm -rf')
, and this will echo the argument safely. It's probably not a good idea to pull out FB internal code like that though, and it has more features than we actually need.
This seems similar, maybe we can pull out this code: https://secure.phabricator.com/book/libphutil/function/execx/