amphp / process

An async process dispatcher for Amp.
MIT License
235 stars 30 forks source link

Use correct arg escape logic on windows #35

Closed DaveRandom closed 5 years ago

DaveRandom commented 5 years ago

Escape arguments according to https://docs.microsoft.com/en-us/previous-versions//17w5ykft(v=vs.85)

This mechanism works when passed directly to CreateProcess() as is done by the process wrapper. It does not work for proc_open() unless the bypass_shell option is used.