cvs: php-src(PHP_5_2) /ext/standard proc_open.c

From: Date: Mon, 02 Apr 2007 20:44:30 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard proc_open.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43694@lists.php.net to get a copy of this message
stas Mon Apr 2 20:44:30 2007 UTC Modified files: (Branch: PHP_5_2) /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.36.2.1.2.13&r2=1.36.2.1.2.14&diff_format=u Index: php-src/ext/standard/proc_open.c diff -u php-src/ext/standard/proc_open.c:1.36.2.1.2.13 php-src/ext/standard/proc_open.c:1.36.2.1.2.14 --- php-src/ext/standard/proc_open.c:1.36.2.1.2.13 Sat Feb 24 03:24:40 2007 +++ php-src/ext/standard/proc_open.c Mon Apr 2 20:44:30 2007 @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: proc_open.c,v 1.36.2.1.2.13 2007/02/24 03:24:40 iliaa Exp $ */ +/* $Id: proc_open.c,v 1.36.2.1.2.14 2007/04/02 20:44:30 stas Exp $ */ #if 0 && (defined(__linux__) || defined(sun) || defined(__IRIX__)) # define _BSD_SOURCE /* linux wants this when XOPEN mode is on */ @@ -745,11 +745,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); }

« previous php.cvs (#43694) next »