Bug #78177 [NEW]: Make proc_open accept command array

From: Date: Tue, 18 Jun 2019 07:45:46 +0000
Subject: Bug #78177 [NEW]: Make proc_open accept command array
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221359@lists.php.net to get a copy of this message
From: nicolas dot grekas+php at gmail dot com Operating system: PHP version: Next Minor Version Package: Unknown/Other Function Bug Type: Bug Bug description:Make proc_open accept command array Description: ------------ Right now, PHP misses a low level primitive to run a process without argument escaping issues. The reason is that proc_open accepts only a string to define the command, so that a command line parser is required under the hood. This also creates the long-lasting issue with signaling, where the shell get them instead of the command itself. Both issues would be fixed by having a way to launch shell-less command lines. All programming language have this, but PHP. proc_open($array, ...) could be the way to go. We're missing this badly. -- Edit bug report at https://bugs.php.net/bug.php?id=78177&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78177&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78177&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78177&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78177&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78177&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78177&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78177&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78177&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78177&r=support Expected behavior: https://bugs.php.net/fix.php?id=78177&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78177&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78177&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78177&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78177&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78177&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78177&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78177&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78177&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78177&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78177&r=mysqlcfg

« previous php.bugs (#221359) next »