1--TEST--
2readline_write_history(): Test that open_basedir is respected
3--EXTENSIONS--
4readline
5--SKIPIF--
6<?php if (!function_exists('readline_write_history')) die("skip"); ?>
7--INI--
8open_basedir=/tmp/some-sandbox
9--FILE--
10<?php
11
12$name = '/tmp/out-of-sandbox';
13
14var_dump(readline_write_history($name));
15
16?>
17--EXPECTF--
18Warning: 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
19bool(false)
20