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

From: Date: Wed, 10 Feb 2021 23:10:08 +0000
Subject: Bug #66216 [Com]: Uncaught exception when using set_error_handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232049@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
 Comment by:         roman dot anasal at bdsu dot de
 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:

@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.


Previous Comments:
------------------------------------------------------------------------
[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?

------------------------------------------------------------------------
[2016-07-02 12:05:40] cmb@php.net

Related To: Bug #72532

------------------------------------------------------------------------


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


Thread (12 messages)

« previous php.bugs (#232049) next »