From: Derick Rethans Date: Thu, 25 Apr 2002 06:43:11 +0000 (+0000) Subject: - Fix for bug #16811 X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ffd089e02134fe02c396372c8b85a3d6ebe4713;p=php - Fix for bug #16811 --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index c440a4059f..d001e763f2 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -525,6 +525,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);