1--TEST--
2readline_write_history(): Test that open_basedir is respected
3--SKIPIF--
4<?php if (!extension_loaded("readline") || !function_exists('readline_write_history')) die("skip"); ?>
5--INI--
6open_basedir=/tmp/some-sandbox
7--FILE--
8<?php
9
10$name = '/tmp/out-of-sandbox';
11
12var_dump(readline_write_history($name));
13
14?>
15--EXPECTF--
16Warning: readline_write_history(): open_basedir restriction in effect. File(/tmp/out-of-sandbox) is not within the allowed path(s): (/tmp/some-sandbox) in %s on line %d
17bool(false)
18