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);
12register_tick_function('a');
13
14echo "Done\n";
15?>
16--EXPECTF--
17hello
18Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
19Done
20hello
21Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d