1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/bug71891.phpt
Xinchen Hui 1929fc9b16 Fixed bug #71891 (header_register_callback() and register_shutdown_function())
Actually, this fixed the memleak not the behavior(it is expected
behavior that "shutdown" is not outputed)
2016-03-25 12:34:22 +08:00

15 lines
244 B
PHP

--TEST--
Bug #71891 (header_register_callback() and register_shutdown_function())
--FILE--
<?php
header_register_callback(function () {
echo 'header';
register_shutdown_function(function () {
echo 'shutdown';
});
});
?>
--EXPECT--
header