2007-04-10 09:37:09 +00:00
|
|
|
--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--
|
2008-07-17 19:29:34 +00:00
|
|
|
Deprecated: Ticks is deprecated and will be removed in PHP 6 in %s on line %d
|
|
|
|
|
|
|
|
Deprecated: register_tick_function(): Ticks is deprecated and will be removed in PHP 6 in %s on line %d
|
2007-04-10 09:37:09 +00:00
|
|
|
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
|