|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug81431.patch (last revision 2021-09-15 10:03 UTC by twosee@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-09-11 11:58 UTC] sjon@php.net
[2021-09-12 19:14 UTC] raoul_vanmaaren at live dot nl
[2021-09-15 10:03 UTC] twosee@php.net
[2021-09-15 10:15 UTC] twosee@php.net
[2021-09-15 10:37 UTC] twosee@php.net
-Status: Open
+Status: Verified
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ In PHP 8.0.0 - 8.0.10, a die statement within the header_register_callback function will not prevent the trigger from being outputted. In previous versions this was the case. This is with the standard settings. I am not sure if this is caused by the performance upgrades and if this is intended or not. However, I cannot find any documentation either. Test script: --------------- <?php ob_start(); // make sure ob_level is set to 1 function callback() { echo "In php 8.0.0 - 8.0.10, a die statement does prevent the trigger from being outputted: "; die(); } header_register_callback("callback"); ob_end_clean(); echo "Trigger."; echo "Execution died before this echo statement."; Expected result: ---------------- In php 8.0.0 - 8.0.10, a die statement does prevent the trigger from being outputted: Actual result: -------------- In php 8.0.0 - 8.0.10, a die statement does prevent the trigger from being outputted: Trigger.