Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83562 invoked from network); 27 Jan 2015 02:55:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 02:55:26 -0000 Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Received: from [85.13.137.24] ([85.13.137.24:38476] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/00-17708-C1EF6C45 for ; Mon, 26 Jan 2015 21:55:25 -0500 Received: from dd15934.kasserver.com (dd0800.kasserver.com [85.13.143.204]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 3689F2618FD; Tue, 27 Jan 2015 03:45:21 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SenderIP: 95.90.237.147 User-Agent: ALL-INKL Webmail 2.11 To: internals@lists.php.net Cc: nicolas.grekas+php@gmail.com, reeze@php.net, yohgaki@ohgaki.net Message-ID: <20150127024521.3689F2618FD@dd15934.kasserver.com> Date: Tue, 27 Jan 2015 03:45:21 +0100 (CET) Subject: Re: [PHP-DEV][RFC] Enable error_handler callback parameters to be passed by reference From: mails@thomasbley.de ("Thomas Bley") 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. Regards Thomas reeze wrote on 23.01.2015 10:59: > 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 > >