Re: [RFC][DISCUSSION] Error Exceptions mode
| From: | Katie Volz | Date: | Tue, 26 May 2020 17:12:59 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Error Exceptions mode | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110282@lists.php.net to get a copy of this message | ||
On Sun, May 24, 2020 at 7:29 PM Rowan Tommins <rowan.collins@gmail.com>
wrote:
> In my mind error_reporting should make absolutely no difference. As you
> say, this option would be for people who don't want to interact with the
> current error system in any way, and that includes its global
> configuration state.
>
My main concern for this was that it would make implementation more
difficult - however it turned out to be fairly straightforward.
One note on this - currently declare() statements do not allow constants or
expressions in them. I had to patch zend_compile.c to allow this, so this
will affect other declare statements as well (for example,
declare(ticks=E_ALL - 37) will be valid). Unknown constants or incorrect
types (ex: declare(error_exception=[]), declare(error_exception=E_ALL -
FOO_BAR)) will fail here.