]> granicus.if.org Git - php/commitdiff
The test self should be fixed(maybe relates to env?)
authorXinchen Hui <laruence@gmail.com>
Mon, 29 Feb 2016 07:19:18 +0000 (15:19 +0800)
committerXinchen Hui <laruence@gmail.com>
Mon, 29 Feb 2016 07:19:18 +0000 (15:19 +0800)
Revert "Fixed test ext/readline/tests/readline_read_history_error_001.phpt"

This reverts commit 69e26f9f8fb444fab29bba0fc99fab0cf6f80dd4.

ext/readline/readline.c

index 7ebc9d4be7bfda41e80f7fcb3f117a2750634e45..1d4427f06137f05b4416ef8ed53f579e99548764 100644 (file)
@@ -402,7 +402,7 @@ PHP_FUNCTION(readline_read_history)
                return;
        }
 
-       if (!arg || php_check_open_basedir(arg) != 0) {
+       if (arg && php_check_open_basedir(arg)) {
                RETURN_FALSE;
        }