summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_io.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-24 12:53:40 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-28 11:09:55 +0200
commit8be051015e04ce6151da77581922eea65330f354 (patch)
treebf993afd3680cdb7325bf09ee06a30521580a6b0 /sapi/phpdbg/phpdbg_io.h
parent143f4e3b5c4d72ae105adb14bde0ecdf361fbbf0 (diff)
downloadphp-git-8be051015e04ce6151da77581922eea65330f354.tar.gz
Add support for proc_open() with a command array
In this case the progarm will be executed directly, without a shell. On Linux the arguments are passed directly to execvp and no escaping is necessary. On Windows we construct a command string using escaping with the default Windows command-line argument parsing method described at https://docs.microsoft.com/en-us/cpp/cpp/parsing-cpp-command-line-arguments. Apart from avoiding the issue of argument escaping, passing an array and bypassing shell has the advantage of allowing proper signal delivery to the opened process (rather than the shell).
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.h')
0 files changed, 0 insertions, 0 deletions