]> granicus.if.org Git - php/commitdiff
- Fixed bug #49095 (proc_get_status['exitcode'] fails on win32)
authorFelipe Pena <felipe@php.net>
Mon, 3 Aug 2009 19:05:56 +0000 (19:05 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 3 Aug 2009 19:05:56 +0000 (19:05 +0000)
NEWS
ext/standard/proc_open.c

diff --git a/NEWS b/NEWS
index 6f23918fc928555440256519235b840c0ac6bd82..2353e6c3353759114a2451cfedf11078a639ef2b 100644 (file)
--- 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
index a70b3362b22cf037a9a0ecd927f6bc8da74f8c72..6b66517e5b30a26517fe8e6ecfebac4afdab540c 100644 (file)
@@ -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