[PATCH] Fallback in proc_open() if SHELL not set in env
proc_open() fails if SHELL is not set in the environment. The attached patch creates a fallback to /bin/sh (Unix) or C:\WINNT\system32\cmd.exe (Windows) instead.
Updated by Anonymous about 14 years ago
Better to fallback to WINDIR\system32\cmd.exe instead of a hardcoded path. Attaching a new patch. Thanks for the tip Robe. The patch is only tested on Unix since I don't have a Windows machine. Make sure to test before applying.
Also available in: Atom