RE: [PHP-CVS] com php-src: Change E_ERROR and some E_WARNING to E_RECOVERABLE_ERROR.: ext/session/mod_user.c ext/session/mod_user_class.c
ext/session/session.c ext/session/tests/bug60860.phpt ext/session/tests/bug66481.phpt ext/session/tests/bug67972.phpt
| From: | Anatol Belski | Date: | Tue, 21 Jul 2015 06:46:50 +0000 |
| Subject: | RE: [PHP-CVS] com php-src: Change E_ERROR and some E_WARNING to E_RECOVERABLE_ERROR.: ext/session/mod_user.c ext/session/mod_user_class.c ext/session/session.c ext/session/tests/bug60860.phpt ext/session/tests/bug66481.phpt ext/session/tests/bug67972.phpt |
||
| References: | 1 2 | Groups: | php.cvs php.internals |
| Request: | Send a blank email to php-cvs+get-88082@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: yohgaki@gmail.com [mailto:yohgaki@gmail.com] On Behalf Of Yasuo
> Ohgaki
> Sent: Tuesday, July 21, 2015 8:24 AM
> To: Anatol Belski <anatol.php@belski.net>
> Cc: Yasuo Ohgaki <yohgaki@php.net>; php-cvs@lists.php.net; Internals
> <internals@lists.php.net>
> Subject: Re: [PHP-CVS] com php-src: Change E_ERROR and some E_WARNING
> to E_RECOVERABLE_ERROR.: ext/session/mod_user.c
> ext/session/mod_user_class.c ext/session/session.c
> ext/session/tests/bug60860.phpt ext/session/tests/bug66481.phpt
> ext/session/tests/bug67972.phpt
>
> Hi Anatol,
>
> On Tue, Jul 21, 2015 at 3:06 PM, Anatol Belski <anatol.php@belski.net>
> wrote:
>
> > Changing E_ERROR to E_RECOVERABLE_ERROR is probably ok where it is
> > safe, but changing E_WARNING to E_RECOVERABLE_ERROR is a BC break.
>
>
> I agree it's BC.
> E_ERROR does not give users a chance for graceful script termination and
> E_WARNING is used instead.
>
> This is the only reason why E_WARNING is used before. However, users may
> continue execution with the default setting. I think it's not good to continue with
> fatal setting errors, but I don't mind changing these errors back to E_WARNING.
> It's your call.
Yeah, please let's not change E_WARNING as it's an obvious and unnecessary BC break with
PHP5. If you could please change them back, IMHO the rest were acceptable.
Btw there's also a thread there about "exceptions in the functions". IMHO we should
retain the old behaviors regarding this subject until there's no strategy came out from there.
Regards
Anatol