mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
Actually, this fixed the memleak not the behavior(it is expected behavior that "shutdown" is not outputed)
15 lines
244 B
PHP
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
|