summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-02-29 15:19:18 +0800
committerXinchen Hui <laruence@gmail.com>2016-02-29 15:19:18 +0800
commitb79b036a312da2e728901356935636365bdce8fe (patch)
tree27f7e6f07f9d825f02c0dca95d59851a0c8a9252
parentd0b3a72cea048a1d1b2a21ba10f3c9e40f37754a (diff)
downloadphp-git-b79b036a312da2e728901356935636365bdce8fe.tar.gz
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.
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
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;
}