note 129700 added to language.errors

From: Date: Sat, 10 Aug 2024 22:51:29 +0000
Subject: note 129700 added to language.errors
Groups: php.notes 
Request: Send a blank email to php-notes+get-221472@lists.php.net to get a copy of this message
<?php // You might not be able to notice that a "Fatal error" occurred in some cases. try{ throw new Exception('An exception!'); }catch (Exception $e){ undefined_function(); // causes a "Fatal error" }finally{ $html = <<<HTML <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <body> <div style="margin:15em 1em"> <p>Even if you remove "die()" at the end of this script, <p>in case that Finally block shows you a window-height content, <p>you might not be able to notice <p>that a "Fatal error" occurred. </div> </body> </html> HTML; echo $html; die(); // if you remove this line, you can see the "Fatal error" message about undefined_function(). But in case "Finally block" shows you a window-height content, it might be difficult to notice that a fatal error occurred because the "Fatal error" message appears after the Finally block process (in PHP 8.3.10). } ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 153.229.123.38) ---- Manual Page -- https://php.net/manual/en/language.errors.php Edit -- https://main.php.net/note/edit/129700 Del: integrated -- https://main.php.net/note/delete/129700/integrated Del: useless -- https://main.php.net/note/delete/129700/useless Del: bad code -- https://main.php.net/note/delete/129700/bad+code Del: spam -- https://main.php.net/note/delete/129700/spam Del: non-english -- https://main.php.net/note/delete/129700/non-english Del: in docs -- https://main.php.net/note/delete/129700/in+docs Del: other reasons-- https://main.php.net/note/delete/129700 Reject -- https://main.php.net/note/reject/129700 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221472) next »