Re: [RFC] Enable error_handler callback parameters to be passed by reference

From: Date: Wed, 28 Jan 2015 17:50:23 +0000
Subject: Re: [RFC] Enable error_handler callback parameters to be passed by reference
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-81315@lists.php.net to get a copy of this message
> 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 <mails@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/ > > > >

« previous php.internals (#81315) next »