From: Felipe Pena Date: Mon, 3 Aug 2009 19:05:56 +0000 (+0000) Subject: - Fixed bug #49095 (proc_get_status['exitcode'] fails on win32) X-Git-Tag: php-5.4.0alpha1~191^2~2871 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f44f3a31cdf68f2cc8669f2282a275686ba4c1f1;p=php - Fixed bug #49095 (proc_get_status['exitcode'] fails on win32) --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index fe94385fff..82f0fdbcfc 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -394,7 +394,7 @@ PHP_FUNCTION(proc_get_status) GetExitCodeProcess(proc->childHandle, &wstatus); running = wstatus == STILL_ACTIVE; - exitcode == STILL_ACTIVE ? -1 : wstatus; + exitcode = running ? -1 : wstatus; #elif HAVE_SYS_WAIT_H