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