Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 863 invoked from network); 28 Jan 2015 17:59:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 17:59:10 -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:56018] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/66-44076-D6329C45 for ; Wed, 28 Jan 2015 12:59:10 -0500 Received: from dd15934.kasserver.com (dd0803.kasserver.com [85.13.146.34]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 60AA926185A; Wed, 28 Jan 2015 18:59:06 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SenderIP: 178.19.222.74 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: <20150128175023.DF53026185A@dd15934.kasserver.com> References: <20150127024521.3689F2618FD@dd15934.kasserver.com> <5363C355-EE27-485F-9C27-C36F79B3FA37@ajf.me> <20150128173609.5B1BC261376@dd15934.kasserver.com><20150128175023.DF53026185A@dd15934.kasserver.com> To: ajf@ajf.me Cc: internals@lists.php.net, nicolas.grekas+php@gmail.com, reeze@php.net, yohgaki@ohgaki.net Message-ID: <20150128175906.60AA926185A@dd15934.kasserver.com> Date: Wed, 28 Jan 2015 18:59:06 +0100 (CET) Subject: Re: [PHP-DEV][RFC] Enable error_handler callback parameters to be passed by reference From: mails@thomasbley.de ("Thomas Bley") >> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries. I'm not sure if there is a library that parses php errors and is not able to handle prefixes or suffixes. I'm using a similar workaround for many years now in code bases with 500k+ lines of code and it was never useless or dangerous. Regards Thomas Thomas Bley wrote on 28.01.2015 18:50: >> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries. > > Yes that's true, maybe set_error_handler can be changed so it behaves like > register_shutdown_function or spl_autoload_register when multiple callbacks are > registered? > > Regards > Thomas > > > Andrea Faulds wrote on 28.01.2015 18:38: > >> Hi Thomas, >> >>> On 28 Jan 2015, at 17:36, Thomas Bley wrote: >>> >>> the idea behind the rfc is not to change error messages, it's only to append >>> useful information to them. >> >> That’s still changing the message. >> >> Error handlers are global anyway, so this is useless (or dangerous) for >> libraries. >> >> I don’t get it. >> >> -- >> Andrea Faulds >> http://ajf.me/ >> >> >> >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >