]> granicus.if.org Git - php/commitdiff
Return right exit status
authorStanislav Malyshev <stas@php.net>
Sun, 5 May 2002 17:14:12 +0000 (17:14 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 5 May 2002 17:14:12 +0000 (17:14 +0000)
ext/standard/exec.c

index d001e763f2c5a0b7c7ac1c77ccc29bc5d94de696..0f0c279cfbdb80ca3cb938f69fb76e4fda52fe55 100644 (file)
@@ -283,7 +283,7 @@ int php_Exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC)
                }
        }
 
-       php_stream_close(stream); 
+       FG(pclose_ret) = php_stream_close(stream); 
 
 #if HAVE_SYS_WAIT_H
        if (WIFEXITED(FG(pclose_ret))) {