Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/TSRM/tsrm_win32.c trunk/TSRM/tsrm_win32.c

2009-08-19 Thread Garrett Serack
Howdy, There are a couple of issues with making all child processes go thru cmd.exe. Initially, this prevents popen_ex from failing when the actual executable doesn't exist, since "cmd.exe /c c:\foo\bar\xxx.exe" will *always* successfully start a process. This can be seen in bug #43327. Second

Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/TSRM/tsrm_win32.c trunk/TSRM/tsrm_win32.c

2009-08-19 Thread Stanislav Malyshev
Hi! - cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); - sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command); - if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process)) { + if (