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