Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88271 invoked from network); 27 Jan 2015 03:09:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 03:09:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.44 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.44 mail-qg0-f44.google.com Received: from [209.85.192.44] ([209.85.192.44:64598] helo=mail-qg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/01-17708-37107C45 for ; Mon, 26 Jan 2015 22:09:40 -0500 Received: by mail-qg0-f44.google.com with SMTP id l89so10051220qgf.3 for ; Mon, 26 Jan 2015 19:09:37 -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=Rx8ENsx6RQS5hUmMs3gJzLwot3IKMF4rQvxAD9GGN2o=; b=UMkrSODnVNk9tUETg/ZR/4Pz56fODwzFRXzpArte2sCG2DGYyw9a/3tkGFVoRzphpr 45K4L7ipFYOLEoiym6NYWiLLJTlEu0UkuPB2Eh1zWLGC9xVGNmeBjCTgjcb0b/4jXfT9 mnhzSTQpl7zf/9+JoflBo/3UaSSb3PAYiwWoeeYvvc0gLcuZaFQi4NOO2HZ0lDjT7AKM 1yGbAmpLdre55NL2mYn2IWVSjU+ad4h16R6ChvfPFbfvNYn25zM38rGYj6fWw76OQcQx u+5N+xQdBMAoS1I6eLhBZdGLqCdkLGLCj7UvbqYlqdtoyz3ulYUnGkPsalYJNQTai2IZ qYjA== X-Received: by 10.224.111.194 with SMTP id t2mr3571143qap.86.1422328176997; Mon, 26 Jan 2015 19:09:36 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Mon, 26 Jan 2015 19:08:56 -0800 (PST) In-Reply-To: <20150127024521.3689F2618FD@dd15934.kasserver.com> References: <20150127024521.3689F2618FD@dd15934.kasserver.com> Date: Tue, 27 Jan 2015 12:08:56 +0900 X-Google-Sender-Auth: -KzXL1GDRSuTXm2cBfNEA_nCaME Message-ID: To: Thomas Bley Cc: "internals@lists.php.net" , nicolas.grekas+php@gmail.com, reeze@php.net Content-Type: multipart/alternative; boundary=047d7b604582be7d8a050d999509 Subject: Re: [PHP-DEV][RFC] Enable error_handler callback parameters to be passed by reference From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b604582be7d8a050d999509 Content-Type: text/plain; charset=UTF-8 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. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b604582be7d8a050d999509--