]> granicus.if.org Git - php/commitdiff
MFH: fix for bug #16811
authorfoobar <sniper@php.net>
Thu, 25 Apr 2002 14:02:51 +0000 (14:02 +0000)
committerfoobar <sniper@php.net>
Thu, 25 Apr 2002 14:02:51 +0000 (14:02 +0000)
ext/standard/exec.c

index 321a6d94d5ed91e7af84e1887ef7d82196e835b1..c984c01a2f256702f202cf630513880b11abb367 100644 (file)
@@ -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);