From: Xinchen Hui Date: Mon, 29 Feb 2016 07:19:18 +0000 (+0800) Subject: The test self should be fixed(maybe relates to env?) X-Git-Tag: php-7.0.5RC1~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b79b036a312da2e728901356935636365bdce8fe;p=php The test self should be fixed(maybe relates to env?) Revert "Fixed test ext/readline/tests/readline_read_history_error_001.phpt" This reverts commit 69e26f9f8fb444fab29bba0fc99fab0cf6f80dd4. --- diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 7ebc9d4be7..1d4427f061 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) != 0) { + if (arg && php_check_open_basedir(arg)) { RETURN_FALSE; }