summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/bug41037.phpt
blob: eab2c334c944170b58efe5b9c55a2451d0998ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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