Re: [RFC] Exceptions in the engine
| From: | Jonathan Wage | Date: | Thu, 19 Feb 2015 16:45:14 +0000 |
| Subject: | Re: [RFC] Exceptions in the engine | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83223@lists.php.net to get a copy of this message | ||
I am not familiar with the implementation details but from my perspective
this would be a nice improvement. I have had a difficult time debugging PHP
fatal errors over the years and I think this kind of change would help
improve that.
On Mon, Oct 6, 2014 at 4:53 PM, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals!
>
> During the PHP 5.6 development cycle I have proposed an RFC [1] that
> suggested the use of exceptions instead of fatal errors in the engine. At
> the time the proposal was declined, because the change was judged too
> intrusive for a minor version.
>
> As such I'm re-proposing this RFC for inclusion in PHP 7:
>
> https://wiki.php.net/rfc/engine_exceptions_for_php7
>
> The RFC text is essentially the same as previously, with the primary
> difference being that parse errors are now converted to exceptions as well.
> This was previously not possible due to limitations in the compiler design.
>
> Thanks,
> Nikita
>
> [1]: https://wiki.php.net/rfc/engine_exceptions
>
--
Connect with me on *http://twitter.com/jwage* <http://twitter.com/jwage>