mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
25 lines
568 B
PHP
25 lines
568 B
PHP
--TEST--
|
|
readline_callback_handler_remove(): Basic test
|
|
--EXTENSIONS--
|
|
readline
|
|
--SKIPIF--
|
|
<?php if (!function_exists('readline_callback_handler_remove')) die("skip");
|
|
if (READLINE_LIB == "libedit") die("skip readline only");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(readline_callback_handler_remove());
|
|
var_dump(readline_callback_handler_install('testing: ', 'foo'));
|
|
|
|
function foo() { }
|
|
var_dump(readline_callback_handler_install('testing: ', 'foo'));
|
|
var_dump(readline_callback_handler_remove());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
%Atesting: bool(true)
|
|
testing: bool(true)
|
|
bool(true)
|