1--TEST--
2Bug #41037 (unregister_tick_function() inside the tick function crash PHP)
3--FILE--
4<?php
5
6function a() {
7		echo "hello";
8			unregister_tick_function('a');
9}
10
11declare (ticks=1) {
12    register_tick_function('a');
13
14    echo "Done\n";
15}
16?>
17--EXPECTF--
18hello
19Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
20Done
21hello
22Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
23