mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
23 lines
271 B
PHP
23 lines
271 B
PHP
--TEST--
|
|
Testing register_shutdown_function()
|
|
--POST--
|
|
--GET--
|
|
ab+cd+ef+123+test
|
|
--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
|
|
|