> -----Original Message----- > From: yohg...@gmail.com [mailto:yohg...@gmail.com] On Behalf Of Yasuo > Ohgaki > Sent: Tuesday, July 21, 2015 8:24 AM > To: Anatol Belski <anatol....@belski.net> > Cc: Yasuo Ohgaki <yohg...@php.net>; php-...@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....@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php