]> granicus.if.org Git - php/commitdiff
- win9x is not supported anymore since 5.3
authorPierre Joye <pajoye@php.net>
Mon, 24 Oct 2011 10:53:17 +0000 (10:53 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 24 Oct 2011 10:53:17 +0000 (10:53 +0000)
ext/standard/proc_open.c

index 6b7f6ba548b2258fc938963568cc93f59d15e4b2..c8ce705251477c9a2084fe74cd5d9c5fc879aab4 100644 (file)
@@ -380,7 +380,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)
 {
@@ -724,7 +723,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);