mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
9ca449e0a8
While the `$command` passed to `proc_open()` had to be wrapped in double-quotes manually, that was implicitly done for all other program execution functions. This could easily introduce bugs and even security issues when switching from one to another program execution function. Furthermore we ensure that the additional quotes are always unwrapped regardless of what is passed as `$command` by passing the `/s` flag to cmd.exe. As it was, `shell_exec('path with spaces/program.exe')` did execute program.exe, but adding an argument (`shell_exec('path with spaces/program.exe -h)`) failed to execute program.exe, because cmd.exe stripped the additional quotes. While these changes obviously can cause BC breaks, we feel that in the long run the benefits of having consistent behavior for all program execution functions outweighs the drawbacks of potentially breaking some code now. |
||
---|---|---|
.. | ||
config.w32 | ||
LICENSE | ||
threads.m4 | ||
tsrm_win32.c | ||
tsrm_win32.h | ||
TSRM.c | ||
TSRM.h | ||
tsrm.m4 |