summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-04-25 06:43:11 +0000
committerDerick Rethans <derick@php.net>2002-04-25 06:43:11 +0000
commit8ffd089e02134fe02c396372c8b85a3d6ebe4713 (patch)
treef7a1534f2bb04a2190d1ded262484134e16a4e9a /ext/standard/exec.c
parent4ec1a0365311f1253faaeedefc1eddceae5bfc20 (diff)
downloadphp-git-8ffd089e02134fe02c396372c8b85a3d6ebe4713.tar.gz
- Fix for bug #16811
Diffstat (limited to 'ext/standard/exec.c')
-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);