summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/bug66094.phpt
blob: 8b33a4f4c3dded62d05debc55094909f334e74c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #66094 (unregister_tick_function tries to cast a Closure to a string)
--FILE--
<?php
declare(ticks=1);
register_tick_function($closure = function () { echo "Tick!\n"; });
unregister_tick_function($closure);
echo "done";
?>
--EXPECTF--	
Tick!
done