From: Stanislav Malyshev Date: Sun, 5 May 2002 17:14:12 +0000 (+0000) Subject: Return right exit status X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b67bafefa534112f2330166ca70956a2f3f041b4;p=php Return right exit status --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index d001e763f2..0f0c279cfb 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -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))) {