From 8ffd089e02134fe02c396372c8b85a3d6ebe4713 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 25 Apr 2002 06:43:11 +0000 Subject: [PATCH] - Fix for bug #16811 --- ext/standard/exec.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.50.1