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')); 17try { 18 var_dump(readline_callback_handler_install('testing: ', 'foobar!')); 19} catch (TypeError $e) { 20 echo $e->getMessage(), "\n"; 21} 22 23?> 24--EXPECT-- 25bool(true) 26readline_callback_handler_install(): Argument #2 ($callback) must be a valid callback, function "foobar!" not found or invalid function name 27