Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81037 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81918 invoked from network); 23 Jan 2015 09:59:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2015 09:59:33 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:38048] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/07-61273-58B12C45 for ; Fri, 23 Jan 2015 04:59:33 -0500 Received: by mail-wg0-f41.google.com with SMTP id a1so6540501wgh.0 for ; Fri, 23 Jan 2015 01:59:29 -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=hyjWZAGrgCQ5BjPBf2xmnCzGrA/9MumZUmoYpT/c8zA=; b=EFL9NvgRormv55x1IOgoBJDQq09cngGf9nn/Kby+ssg3zNFy9yBdDOG+k+KxDFmGgR y9aNUPd2YDaPyrKDbV2n4bM4rQBvxdS01Zua7AMkYEySObcUzl9JCZme+ScPwWhEUUwK ncpLFBgt5criJBAZEh7k5TqleyB3MnWVvYM6b/0lAqaPyJPLW+xPOHVn5st7d3af9hZZ 3MHNHocQEvUJUqSdzPcWPrSX0MVJeKXRlw3CJKdAcYm6mXb7zHWo0Xgmn61nSTPOTqs3 5ueg+4AY7BYd07ImaBm8iyD/iXi/DKH9SiDmg7ZaQp7jjlGU8osU4CfyAw+I8KWrzAZy 7Xbg== X-Received: by 10.180.207.10 with SMTP id ls10mr2044203wic.7.1422007169594; Fri, 23 Jan 2015 01:59:29 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.195.12.163 with HTTP; Fri, 23 Jan 2015 01:59:09 -0800 (PST) In-Reply-To: References: <20150121043939.5129B26183A@dd15934.kasserver.com> Date: Fri, 23 Jan 2015 17:59:09 +0800 X-Google-Sender-Auth: thduL7RUwP0ajc5GN4WPA5JXwY0 Message-ID: To: Nicolas Grekas Cc: Thomas Bley , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3f51a363b9f050d4ed896 Subject: Re: [PHP-DEV] Enable error_handler callback parameters to be passed by reference From: reeze@php.net (reeze) --001a11c3f51a363b9f050d4ed896 Content-Type: text/plain; charset=ISO-8859-1 Yeah, seem other want it it too, so I just updated the PR to allow the first four parameters been passed by reference. On 23 January 2015 at 16:23, Nicolas Grekas wrote: > > function myErrorHandler($errno, &$errstr, $errfile, $errline) {...} > > > > It would be awesome to also pass $errfile and $errline by reference. This > would allow mapping "compiled" source to real source code and have > meaningful error file+line information. > By "compiled", I mean e.g. inlined classes (like the bootstrap.cache.php > file in Symfony), or preprocessed sources, etc. > > Nicolas > --001a11c3f51a363b9f050d4ed896--