Annotation of embedaddon/php/ext/standard/tests/general_functions/bug41037.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #41037 (unregister_tick_function() inside the tick function crash PHP)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: function a() {
                      7:                echo "hello";
                      8:                        unregister_tick_function('a');
                      9: }
                     10: 
                     11: declare (ticks=1);
                     12: register_tick_function('a');
                     13: 
                     14: echo "Done\n";
                     15: ?>
                     16: --EXPECTF--    
                     17: hello
                     18: Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
                     19: Done
                     20: hello
                     21: Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
                     22: hello
                     23: Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>