com php-src: Fixed test ext/readline/tests/readline_read_hi story_error_001.phpt: ext/readline/readline.c

From: Date: Mon, 29 Feb 2016 07:07:19 +0000
Subject: com php-src: Fixed test ext/readline/tests/readline_read_hi story_error_001.phpt: ext/readline/readline.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91178@lists.php.net to get a copy of this message
Commit: 69e26f9f8fb444fab29bba0fc99fab0cf6f80dd4 Author: Xinchen Hui <laruence@gmail.com> Mon, 29 Feb 2016 15:07:19 +0800 Parents: 8c053d44e473f6b9e65d50ce81029b5849d9e105 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=69e26f9f8fb444fab29bba0fc99fab0cf6f80dd4 Log: Fixed test ext/readline/tests/readline_read_history_error_001.phpt Changed paths: M ext/readline/readline.c Diff: diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 1d4427f..7ebc9d4 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; }

« previous php.cvs (#91178) next »