summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}