diff options
Diffstat (limited to 'ext/readline/readline.c')
| -rw-r--r-- | ext/readline/readline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index c9389fc8eb..1054b0ea3b 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -384,6 +384,10 @@ PHP_FUNCTION(readline_read_history) return; } + if (php_check_open_basedir(arg TSRMLS_CC)) { + RETURN_FALSE; + } + /* XXX from & to NYI */ if (read_history(arg)) { RETURN_FALSE; @@ -404,6 +408,10 @@ PHP_FUNCTION(readline_write_history) return; } + if (php_check_open_basedir(arg TSRMLS_CC)) { + RETURN_FALSE; + } + if (write_history(arg)) { RETURN_FALSE; } else { |
