mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
24 lines
595 B
PHP
24 lines
595 B
PHP
--TEST--
|
|
Bug #41037 (unregister_tick_function() inside the tick function crash PHP)
|
|
--FILE--
|
|
<?php
|
|
|
|
function a() {
|
|
echo "hello";
|
|
unregister_tick_function('a');
|
|
}
|
|
|
|
declare (ticks=1);
|
|
register_tick_function('a');
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
hello
|
|
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
|
|
Done
|
|
hello
|
|
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
|
|
hello
|
|
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
|