xref: /PHP-5.6/tests/func/005.phpt (revision 84e5fcb5)
1--TEST--
2Testing register_shutdown_function()
3--FILE--
4<?php
5
6function foo()
7{
8	print "foo";
9}
10
11register_shutdown_function("foo");
12
13print "foo() will be called on shutdown...\n";
14
15?>
16--EXPECT--
17foo() will be called on shutdown...
18foo
19
20