1--TEST-- 2readline_callback_handler_remove(): Basic test 3lsan disabled due to a leak on ubuntu focal only. 4--EXTENSIONS-- 5readline 6--SKIPIF-- 7<?php if (!function_exists('readline_callback_handler_remove')) die("skip"); 8if (READLINE_LIB != "libedit") die("skip libedit only"); 9?> 10--INI-- 11zend.signal_check=0 12--ENV-- 13LSAN_OPTIONS=detect_leaks=0 14--FILE-- 15<?php 16 17var_dump(readline_callback_handler_remove()); 18var_dump(readline_callback_handler_install('testing: ', 'foo')); 19 20function foo() { } 21var_dump(readline_callback_handler_install('testing: ', 'foo')); 22var_dump(readline_callback_handler_remove()); 23 24?> 25--EXPECT-- 26bool(false) 27bool(true) 28bool(true) 29bool(true) 30