>> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries.
I'm not sure if there is a library that parses php errors and is not able to handle prefixes or suffixes. I'm using a similar workaround for many years now in code bases with 500k+ lines of code and it was never useless or dangerous. Regards Thomas Thomas Bley wrote on 28.01.2015 18:50: >> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries. > > Yes that's true, maybe set_error_handler can be changed so it behaves like > register_shutdown_function or spl_autoload_register when multiple callbacks > are > registered? > > Regards > Thomas > > > Andrea Faulds wrote on 28.01.2015 18:38: > >> Hi Thomas, >> >>> On 28 Jan 2015, at 17:36, Thomas Bley <ma...@thomasbley.de> wrote: >>> >>> the idea behind the rfc is not to change error messages, it's only to append >>> useful information to them. >> >> That’s still changing the message. >> >> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries. >> >> I don’t get it. >> >> -- >> Andrea Faulds >> http://ajf.me/ >> >> >> >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php