diff options
Diffstat (limited to 'tests/func/005.phpt')
-rw-r--r-- | tests/func/005.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/func/005.phpt b/tests/func/005.phpt new file mode 100644 index 0000000..c4215fe --- /dev/null +++ b/tests/func/005.phpt @@ -0,0 +1,19 @@ +--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 + |