From 017670317f54409381fee1d06ef2fc73674b6419 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 3 Aug 2009 19:05:56 +0000 Subject: [PATCH] - Fixed bug #49095 (proc_get_status['exitcode'] fails on win32) --- NEWS | 1 + ext/standard/proc_open.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6f23918fc9..2353e6c335 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ PHP NEWS - Fixed bug #49132 (posix_times returns false without error). (phpbugs at gunnu dot us) - Fixed bug #49125 (Error in dba_exists C code). (jdornan at stanford dot edu) +- Fixed bug #49095 (proc_get_status['exitcode'] fails on win32). (Felipe) - Fixed bug #49074 (private class static fields can be modified by using reflection). (Jani) - Fixed bug #49052 (context option headers freed too early when using diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index a70b3362b2..6b66517e5b 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -412,7 +412,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 -- 2.50.1