mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00: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.
27 lines
574 B
PHP
27 lines
574 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 libedit only");
|
|
?>
|
|
--INI--
|
|
zend.signal_check=0
|
|
--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());
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|