Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73539 invoked from network); 27 Jan 2015 12:27:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 12:27:30 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:42443] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/A2-59067-C2487C45 for ; Tue, 27 Jan 2015 07:27:25 -0500 Received: by mail-la0-f50.google.com with SMTP id hs14so12902928lab.9 for ; Tue, 27 Jan 2015 04:27:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=z9oYNpupMYHPqjGfYlrLRWWpZfF7lCNORrZRZs+D0Oo=; b=CYRsKj8MOWmBPygf0qlw1DhJtOGyDIh5ihAyqV0gVgcA7eCe5JhlXEHaCOV0q6DJ2n uzvKNeKzHAOLbyxPy4N08+8Ty53PcP+YYkE5g3Y9oHHHM95yJj+tbygKlYrSvBkfQehl D17SD1428821B30928Kqh9TouUli206Q1YJ0WYlyocNsQs34Vf6JOILJty7lsuiQaR0e Ji+7Jmo12rqvximKJXbJ9Pb+79t2LAuLeGUy5N27n6iw+rwpUPNkp5FUg//yFYQpysQt Oupa7+cT78eo8uQ1tzt7iN1xTSivGNsJu/kTkRhkHJkfHyd0dD2CEKtXKDsOUlFR/FHd SxHw== X-Gm-Message-State: ALoCoQkg3dVGKcTDacNg2iSCPggjmb5IcaXNPPbfCa8LcREupFbg+9XmEwAZOUiHGAHZR5LffBm2JI90uNhdJZ9fJ63uoLfx3tSK5jaVvQj7cHNRUp+MRDAwQ0DUEKP6S2CXmJLoZPcydYeSgGvtcCCLaAWMIt6tUw== X-Received: by 10.152.27.69 with SMTP id r5mr1332833lag.18.1422361641503; Tue, 27 Jan 2015 04:27:21 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPSA id k4sm394562lam.43.2015.01.27.04.27.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 04:27:20 -0800 (PST) Received: by mail-lb0-f180.google.com with SMTP id b6so12708267lbj.11 for ; Tue, 27 Jan 2015 04:27:19 -0800 (PST) X-Received: by 10.152.21.228 with SMTP id y4mr1333569lae.72.1422361639041; Tue, 27 Jan 2015 04:27:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.64.176 with HTTP; Tue, 27 Jan 2015 04:26:58 -0800 (PST) In-Reply-To: References: <20150127024521.3689F2618FD@dd15934.kasserver.com> Date: Tue, 27 Jan 2015 20:26:58 +0800 Message-ID: To: Yasuo Ohgaki Cc: Thomas Bley , "internals@lists.php.net" , nicolas.grekas+php@gmail.com, reeze@php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV][RFC] Enable error_handler callback parameters to be passed by reference From: laruence@php.net (Xinchen Hui) Hey: On Tue, Jan 27, 2015 at 11:08 AM, Yasuo Ohgaki wrote: > Hi Thomas, > > On Tue, Jan 27, 2015 at 11:45 AM, Thomas Bley 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/