mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
20 lines
236 B
PHP
20 lines
236 B
PHP
--TEST--
|
|
Testing register_shutdown_function()
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo()
|
|
{
|
|
print "foo";
|
|
}
|
|
|
|
register_shutdown_function("foo");
|
|
|
|
print "foo() will be called on shutdown...\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
foo() will be called on shutdown...
|
|
foo
|
|
|