Bug #79704 [NEW]: proc_open failure with Windows

From: Date: Tue, 16 Jun 2020 02:30:42 +0000
Subject: Bug #79704 [NEW]: proc_open failure with Windows
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227500@lists.php.net to get a copy of this message
From: svnpenn at gmail dot com Operating system: Windows 10 PHP version: 7.4.7 Package: *General Issues Bug Type: Bug Bug description:proc_open failure with Windows Description: ------------ proc_open failure with Windows If I run this Python script: import subprocess a = [ r'C:\Windows\System32\msiexec.exe', r'TargetDir=C:\TargetDir', '/qb', '/a', 'a.msi' ] subprocess.run(a) Everything is fine, but if I run this PHP script: <?php declare(strict_types = 1); $a1 = [ 'C:\\Windows\\System32\\msiexec.exe', 'TargetDir=C:\\TargetDir', '/qb', '/a', 'a.msi' ]; $a2 = []; $a3 = []; proc_open($a1, $a2, $a3); I just get the usage page for Windows Installer. The documentation and tests show that you can use an array: - https://github.com/php/php-src/blob/master/ext/standard/tests/general_functions/proc_open_array.phpt - https://www.php.net/manual/en/function.proc-open.php but it seems PHP is doing something funny with the parsing. -- Edit bug report at https://bugs.php.net/bug.php?id=79704&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79704&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79704&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79704&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79704&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79704&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79704&r=support Expected behavior: https://bugs.php.net/fix.php?id=79704&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79704&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79704&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79704&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79704&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79704&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79704&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79704&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79704&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79704&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79704&r=mysqlcfg

« previous php.bugs (#227500) next »