Edit report at https://bugs.php.net/bug.php?id=60181&edit=1
ID: 60181
Updated by: cmb@php.net
Reported by: php at aldomx dot com
Summary: proc_open fails to read quoted whitespaced
directories in Windows
-Status: Open
+Status: Closed
Type: Bug
Package: Program Execution
Operating System: Windows 7
PHP Version: 5.3.8
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> Put the entire command string in double quotes.
Right. This is now also documented in the PHP manual[1]. Also
note that as of PHP 7.4.0, you want to pass an array as $cmd.
[1] <https://www.php.net/proc_open>
Previous Comments:
------------------------------------------------------------------------
[2014-05-24 19:01:22] martin at Liquidsculpture dot com
I found the workaround that works: https://bugs.php.net/bug.php?id=49139 Put the
entire command string in double quotes. I'm dropping this here to help the next person looking
for the answer.
------------------------------------------------------------------------
[2014-05-24 17:20:54] martin at Liquidsculpture dot com
Sorry, I should add that I am using PHP 5.4.27 (cli) - still a problem.
------------------------------------------------------------------------
[2014-05-24 17:15:31] martin at Liquidsculpture dot com
I tried the workaround of adding "array('bypass_shell' => TRUE)" as a
parameter. While it eliminates the error message, the command still does not execute.
This still looks like a bug to me.
------------------------------------------------------------------------
[2014-03-05 21:11:16] david at grudl dot com
Workaround: use array('bypass_shell' => TRUE) as last argument.
------------------------------------------------------------------------
[2011-11-01 09:45:05] pajoye@php.net
Matt, please take a look to see what's going wrong here
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60181
--
Edit this bug report at https://bugs.php.net/bug.php?id=60181&edit=1