Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81252 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19113 invoked from network); 27 Jan 2015 18:22:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 18:22:20 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.53 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.53 mail-qg0-f53.google.com Received: from [209.85.192.53] ([209.85.192.53:38394] helo=mail-qg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/5A-59067-B57D7C45 for ; Tue, 27 Jan 2015 13:22:19 -0500 Received: by mail-qg0-f53.google.com with SMTP id a108so12957636qge.12 for ; Tue, 27 Jan 2015 10:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=tJmiZYWR40UtdhXgvpk9NEOvLhEfgK6PLpzqpc4Uyjs=; b=s/313gAyid4gEf9mpX6tWZPHuM0wh6RwRhbJ97yxWdKiw4rWnAWhL9XAk1Zla2HDeW eAbj5eT/eOxCKdxtwD950BlKF/nyP/undHE1Ha5FxtLlS5JLiGpEPaT3F24HFrwMODSW vlH/kjVWyRCmibm79Z0Utw76bm0XYj6kD78sYY37OiXyzxTPfSpPFKQzwGuo+g07i1/f RHdgJKSHMmBj0/YMLCXHrf9R0hI0rVCpczIGvK19Y04n39NWK8jvp0i8qtStwFRijxX2 tmSgpPg/YDA/yri9Vx09hq9uQl0urvk1dOde2aSiCAYdkXEv60prHLyQ99WUydOucDPE G0Rg== X-Received: by 10.224.111.194 with SMTP id t2mr4383937qap.86.1422382936197; Tue, 27 Jan 2015 10:22:16 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Tue, 27 Jan 2015 10:21:36 -0800 (PST) In-Reply-To: References: <20150127024521.3689F2618FD@dd15934.kasserver.com> Date: Wed, 28 Jan 2015 03:21:36 +0900 X-Google-Sender-Auth: 5UL6kkhiIPUH9ovu9QO52tXeDU0 Message-ID: To: Xinchen Hui Cc: Thomas Bley , "internals@lists.php.net" , "nicolas.grekas+php" , reeze Content-Type: multipart/alternative; boundary=047d7b604582a58ff0050da6551b Subject: Re: [PHP-DEV][RFC] Enable error_handler callback parameters to be passed by reference From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b604582a58ff0050da6551b Content-Type: text/plain; charset=UTF-8 Hi all, On Wed, Jan 28, 2015 at 3:09 AM, Yasuo Ohgaki wrote: > On Tue, Jan 27, 2015 at 9:26 PM, Xinchen Hui 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 --047d7b604582a58ff0050da6551b--