1--TEST--
2readline_add_history(): Basic test
3--EXTENSIONS--
4readline
5--SKIPIF--
6<?php if (!function_exists('readline_list_history')) die("skip"); ?>
7--FILE--
8<?php
9
10var_dump(readline_add_history('foo'));
11var_dump(readline_list_history());
12var_dump(readline_add_history(''));
13var_dump(readline_list_history());
14var_dump(readline_clear_history());
15
16?>
17--EXPECT--
18bool(true)
19array(1) {
20  [0]=>
21  string(3) "foo"
22}
23bool(true)
24array(2) {
25  [0]=>
26  string(3) "foo"
27  [1]=>
28  string(0) ""
29}
30bool(true)
31