summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/exec.c1
1 files changed, 1 insertions, 0 deletions
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);