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

From: Date: Tue, 27 Jan 2015 12:26:58 +0000
Subject: Re: [RFC] Enable error_handler callback parameters to be passed by reference
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-81235@lists.php.net to get a copy of this message
Hey: On Tue, Jan 27, 2015 at 11:08 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi Thomas, > > On Tue, Jan 27, 2015 at 11:45 AM, Thomas Bley <mails@thomasbley.de> wrote: > >> Here is the rfc: >> >> >> https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference >> >> Thanks to reeze for coding and putting it on the wiki. >> > > It looks good to me. > > Future Scope > set_error_handler() callback might be able to handle E_ERROR to be able to > append additional information to memory_limit exhaustions (or others). > > I really want to catch E_RROR by user defined error handler. The only > reason why this was disabled is abuse of error handler. We may document > abuse of error handler with E_ERROR may result in undefined behavior > including memory leak/crash and allow it. I feel it's kindof wrong direction. if you want custom logs, maybe you should use custom logger. thanks > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net -- Xinchen Hui @Laruence http://www.laruence.com/

« previous php.internals (#81235) next »