summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/bug66094.phpt
blob: d218e70efa7cf76086fb06255cb6f382c98268c7 (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";
?>
--EXPECT--
Tick!
done