mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
9bff96396d
We need to avoid storing it in the first place, as we don't really have a good place to release it later. If headers haven't been sent yet, send_headers will do this. sapi_deactive happens too late in the shutdown sequence and will result in leak reports.
10 lines
185 B
PHP
10 lines
185 B
PHP
--TEST--
|
|
Call header_register_callback() after headers sent
|
|
--FILE--
|
|
<?php
|
|
echo "Send headers.\n";
|
|
header_register_callback(function() { echo "Too late";});
|
|
?>
|
|
--EXPECT--
|
|
Send headers.
|