1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/readline/tests/libedit_callback_handler_remove_001.phpt
David Carlier cad0ce5382 CI disable leak sanitizer on two libedit tests temporarily.
the libedit dependency has a leak on wcsdup call on ubuntu focal

close GH-15279
2024-08-07 22:38:30 +01:00

30 lines
660 B
PHP

--TEST--
readline_callback_handler_remove(): Basic test
lsan disabled due to a leak on ubuntu focal only.
--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
--ENV--
LSAN_OPTIONS=detect_leaks=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)