From: foobar Date: Thu, 25 Apr 2002 14:02:51 +0000 (+0000) Subject: MFH: fix for bug #16811 X-Git-Tag: php-4.2.1RC1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3af0eb20a01a720d8a5936e4c357c7fa98395654;p=php MFH: fix for bug #16811 --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 321a6d94d5..c984c01a2f 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -459,6 +459,7 @@ PHP_FUNCTION(shell_exec) if ((in=VCWD_POPEN(Z_STRVAL_PP(cmd), "r"))==NULL) { #endif php_error(E_WARNING, "Unable to execute '%s'", Z_STRVAL_PP(cmd)); + RETURN_FALSE; } allocated_space = EXEC_INPUT_BUF; ret = (char *) emalloc(allocated_space);