Return to bug66094.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: Bug #66094 (unregister_tick_function tries to cast a Closure to a string) 3: --FILE-- 4: <?php 5: declare(ticks=1); 6: register_tick_function($closure = function () { echo "Tick!\n"; }); 7: unregister_tick_function($closure); 8: echo "done"; 9: ?> 10: --EXPECTF-- 11: Tick! 12: done