xref: /PHP-8.3/tests/func/005.phpt (revision f8d79582)
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