cvs: TSRM(PHP_5_2) / tsrm_win32.c
| From: | Stanislav Malyshev | Date: | Mon, 02 Apr 2007 20:42:45 +0000 |
| Subject: | cvs: TSRM(PHP_5_2) / tsrm_win32.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5705@lists.php.net to get a copy of this message | ||
stas Mon Apr 2 20:42:45 2007 UTC
Modified files: (Branch: PHP_5_2)
/TSRM tsrm_win32.c
Log:
fix for #33664 Console window appears when using exec()
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_win32.c?r1=1.27.2.1.2.5&r2=1.27.2.1.2.6&diff_format=u
Index: TSRM/tsrm_win32.c
diff -u TSRM/tsrm_win32.c:1.27.2.1.2.5 TSRM/tsrm_win32.c:1.27.2.1.2.6
--- TSRM/tsrm_win32.c:1.27.2.1.2.5 Tue Mar 20 17:57:59 2007
+++ TSRM/tsrm_win32.c Mon Apr 2 20:42:44 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_win32.c,v 1.27.2.1.2.5 2007/03/20 17:57:59 tony2001 Exp $ */
+/* $Id: tsrm_win32.c,v 1.27.2.1.2.6 2007/04/02 20:42:44 stas Exp $ */
#include <stdio.h>
#include <fcntl.h>
@@ -219,7 +219,7 @@
cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c "));
sprintf(cmd, "%s /c %s", TWG(comspec), command);
- if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle,
NORMAL_PRIORITY_CLASS, env, cwd, &startup, &process)) {
+ if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle,
NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) {
return NULL;
}
free(cmd);