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