diff options
author | Stanislav Malyshev <stas@php.net> | 2007-04-02 20:44:30 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2007-04-02 20:44:30 +0000 |
commit | 8f0d69159e0a1ed44f93e06cab5905ddba310eef (patch) | |
tree | a2cf58e9b7d52ba6713f1fd7f51397b92a417080 /TSRM | |
parent | 3da21dc6fc279af54f79160e5b42a3f2050a302e (diff) | |
download | php-git-8f0d69159e0a1ed44f93e06cab5905ddba310eef.tar.gz |
fix for #33664 Console window appears when using exec()
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 5a8983b5e4..ae9ea312f2 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -219,7 +219,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, 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); |