Bug #66216 [Csd]: Uncaught exception when using set_error_handler

From: Date: Thu, 11 Feb 2021 08:43:54 +0000
Subject: Bug #66216 [Csd]: Uncaught exception when using set_error_handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232052@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66216&edit=1 ID: 66216 Updated by: nikic@php.net Reported by: bastiaan at basenlily dot me Summary: Uncaught exception when using set_error_handler Status: Closed Type: Bug Package: Scripting Engine problem Operating System: Any PHP Version: 5.5.6 Assigned To: requinix Block user comment: N Private report: N New Comment: @roman: Oh right. This should be fixed with https://github.com/php/php-src/commit/d80d918547b676e78ccf096a24069a8b2e5dd96b. Previous Comments: ------------------------------------------------------------------------ [2021-02-10 23:10:08] roman dot anasal at bdsu dot de @nikic the expected output would be just "Hello World", as it is with https://3v4l.org/U9bu8 Instead it is: > Fatal error: Uncaught Exception: Hello world in /in/7ObLM:4 and the process exits with status 255. The Exception should be caught in line 11 but isn't. ------------------------------------------------------------------------ [2021-02-10 22:34:47] nikic@php.net @roman Seems to work fine as of PHP 8 at least? ------------------------------------------------------------------------ [2021-02-10 22:16:24] roman dot anasal at bdsu dot de This is still broken for require_once, see https://3v4l.org/7ObLM ------------------------------------------------------------------------ [2020-08-23 04:23:32] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2020-08-12 10:44:23] nikic@php.net @cmb's examples work fine as of PHP 7.4. Is there anything else left to do here? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66216 -- Edit this bug report at https://bugs.php.net/bug.php?id=66216&edit=1

« previous php.bugs (#232052) next »