stas Mon Apr 2 20:48:30 2007 UTC
Modified files:
/php-src/ext/standard proc_open.c
Log:
fix for #33664 Console window appears when using exec()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/proc_open.c?r1=1.54&r2=1.55&diff_format=u
Index: php-src/ext/standard/proc_open.c
diff -u php-src/ext/standard/proc_open.c:1.54
php-src/ext/standard/proc_open.c:1.55
--- php-src/ext/standard/proc_open.c:1.54 Sat Feb 24 16:25:55 2007
+++ php-src/ext/standard/proc_open.c Mon Apr 2 20:48:30 2007
@@ -15,7 +15,7 @@
| Author: Wez Furlong <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: proc_open.c,v 1.54 2007/02/24 16:25:55 helly Exp $ */
+/* $Id: proc_open.c,v 1.55 2007/04/02 20:48:30 stas Exp $ */
#if 0 && (defined(__linux__) || defined(sun) || defined(__IRIX__))
# define _BSD_SOURCE /* linux wants this when XOPEN mode is on */
@@ -738,11 +738,11 @@
}
if (bypass_shell) {
- newprocok = CreateProcess(NULL, command, &security, &security,
TRUE, NORMAL_PRIORITY_CLASS, env.envp, cwd, &si, &pi);
+ newprocok = CreateProcess(NULL, command, &security, &security,
TRUE, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env.envp, cwd, &si, &pi);
} else {
spprintf(&command_with_cmd, 0, "%s /c %s", GetVersion() <
0x80000000 ? COMSPEC_NT : COMSPEC_9X, command);
- newprocok = CreateProcess(NULL, command_with_cmd, &security,
&security, TRUE, NORMAL_PRIORITY_CLASS, env.envp, cwd, &si, &pi);
+ newprocok = CreateProcess(NULL, command_with_cmd, &security,
&security, TRUE, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env.envp, cwd, &si,
&pi);
efree(command_with_cmd);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php