summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-10-24 10:53:17 +0000
committerPierre Joye <pajoye@php.net>2011-10-24 10:53:17 +0000
commitb7354a30cd059491a98ade432b76c680dc66706d (patch)
tree09f6caf55e6e57466634f76a5a7f5c32f9e236ea
parentc18a8bfe6393531693c03ecce37746b1d7fe1a2c (diff)
downloadphp-git-b7354a30cd059491a98ade432b76c680dc66706d.tar.gz
- win9x is not supported anymore since 5.3
-rw-r--r--ext/standard/proc_open.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index 7bb003207f..bc9f7b1ba2 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -454,7 +454,6 @@ PHP_FUNCTION(proc_get_status)
# define pipe(pair) (CreatePipe(&pair[0], &pair[1], &security, 2048L) ? 0 : -1)
# define COMSPEC_NT "cmd.exe"
-# define COMSPEC_9X "command.com"
static inline HANDLE dup_handle(HANDLE src, BOOL inherit, BOOL closeorig)
{
@@ -800,7 +799,7 @@ PHP_FUNCTION(proc_open)
if (bypass_shell) {
newprocok = CreateProcess(NULL, command, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
} else {
- spprintf(&command_with_cmd, 0, "%s /c %s", GetVersion() < 0x80000000 ? COMSPEC_NT : COMSPEC_9X, command);
+ spprintf(&command_with_cmd, 0, "%s /c %s", COMSPEC_NT, command);
newprocok = CreateProcess(NULL, command_with_cmd, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);