]> granicus.if.org Git - php/commitdiff
- Fix for bug #16811
authorDerick Rethans <derick@php.net>
Thu, 25 Apr 2002 06:43:11 +0000 (06:43 +0000)
committerDerick Rethans <derick@php.net>
Thu, 25 Apr 2002 06:43:11 +0000 (06:43 +0000)
ext/standard/exec.c

index c440a4059f149b7be2b88a2daa92bb190f108b34..d001e763f2c5a0b7c7ac1c77ccc29bc5d94de696 100644 (file)
@@ -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);