]> 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)
ext/standard/proc_open.c

index fe94385fff34db99a363be5b607d856637e959af..82f0fdbcfc4eb96088eab2c5b2b070c950134fcd 100644 (file)
@@ -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