From: Xinchen Hui Date: Mon, 29 Feb 2016 07:07:19 +0000 (+0800) Subject: Fixed test ext/readline/tests/readline_read_history_error_001.phpt X-Git-Tag: php-7.0.5RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69e26f9f8fb444fab29bba0fc99fab0cf6f80dd4;p=php Fixed test ext/readline/tests/readline_read_history_error_001.phpt --- diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 1d4427f061..7ebc9d4be7 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -402,7 +402,7 @@ PHP_FUNCTION(readline_read_history) return; } - if (arg && php_check_open_basedir(arg)) { + if (!arg || php_check_open_basedir(arg) != 0) { RETURN_FALSE; }