![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Testing register_shutdown_function() ! 3: --FILE-- ! 4: <?php ! 5: ! 6: function foo() ! 7: { ! 8: print "foo"; ! 9: } ! 10: ! 11: register_shutdown_function("foo"); ! 12: ! 13: print "foo() will be called on shutdown...\n"; ! 14: ! 15: ?> ! 16: --EXPECT-- ! 17: foo() will be called on shutdown... ! 18: foo ! 19: