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

From: Date: Tue, 27 Jan 2015 18:21:36 +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-81252@lists.php.net to get a copy of this message
Hi all, On Wed, Jan 28, 2015 at 3:09 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > On Tue, Jan 27, 2015 at 9:26 PM, Xinchen Hui <laruence@php.net> wrote: > >> if you want custom logs, maybe you should use custom logger. > > > It requires to catch all errors, I suppose. If PHP allows it, either would > work. I considered a little more. With error handler that catches E_ERROR cannot be complex handler as complex handler may use various resources that may cause all kinds of errors. Therefore, complex custom error handler logger may miss to log important errors. Best practice would be separating app log and system(PHP) error log. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#81252) next »