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 (!CreateProcess(NULL, command, &security, &security, 
security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process)) {
                return NULL;

Could you explain this change? It seems to change the semantics of popen in a significant way...
--
Stanislav Malyshev, Zend Software Architect
s...@zend.com   http://www.zend.com/
(408)253-8829   MSN: s...@zend.com

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to