1--TEST-- 2readline_info(): Basic test 3--SKIPIF-- 4<?php if (!extension_loaded("readline")) die("skip"); 5if (READLINE_LIB != "libedit") die("skip libedit only"); 6?> 7--FILE-- 8<?php 9 10var_dump(readline_info()); 11var_dump(readline_info(1)); 12var_dump(readline_info(1,1)); 13var_dump(readline_info('line_buffer')); 14var_dump(readline_info('readline_name')); 15var_dump(readline_info('readline_name', 1)); 16var_dump(readline_info('readline_name')); 17var_dump(readline_info('attempted_completion_over',1)); 18var_dump(readline_info('attempted_completion_over')); 19 20?> 21--EXPECTF-- 22array(6) { 23 ["line_buffer"]=> 24 string(0) "" 25 ["point"]=> 26 int(0) 27 ["end"]=> 28 int(0) 29 ["library_version"]=> 30 string(%d) "%s" 31 ["readline_name"]=> 32 string(0) "" 33 ["attempted_completion_over"]=> 34 int(0) 35} 36NULL 37NULL 38string(0) "" 39string(0) "" 40string(0) "" 41string(1) "1" 42int(0) 43int(1) 44