1--TEST-- 2readline_callback_handler_install(): Basic test 3--SKIPIF-- 4<?php if (!extension_loaded("readline") || !function_exists('readline_callback_handler_install')) die("skip"); 5if (READLINE_LIB != "libedit") die("skip libedit only"); 6?> 7--INI-- 8zend.signal_check=0 9--FILE-- 10<?php 11 12function foo() { 13 readline_callback_handler_remove(); 14} 15 16var_dump(readline_callback_handler_install('testing: ', 'foo')); 17var_dump(readline_callback_handler_install('testing: ', 'foobar!')); 18var_dump(readline_callback_handler_install('testing: ')); 19 20?> 21--EXPECTF-- 22bool(true) 23 24Warning: readline_callback_handler_install(): foobar! is not callable in %s on line %d 25bool(false) 26 27Warning: readline_callback_handler_install() expects exactly 2 parameters, 1 given in %s on line %d 28NULL 29