For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > April 2007 > cvs: TSRM(PHP_5_2) / tsrm_win32.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: TSRM(PHP_5_2) / tsrm_win32.c
Stanislav Malyshev

2007-04-02, 6:57 pm

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/...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);
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com