From b67bafefa534112f2330166ca70956a2f3f041b4 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 5 May 2002 17:14:12 +0000 Subject: [PATCH] Return right exit status --- ext/standard/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) { -- 2.50.1