Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46576 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62965 invoked from network); 31 Dec 2009 04:17:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2009 04:17:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:1423] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/D5-12956-DE52C3B4 for ; Wed, 30 Dec 2009 23:17:50 -0500 Received: (qmail 56296 invoked by uid 98); 31 Dec 2009 04:17:53 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 (clamdscan: 0.88.7/10240. Clear:RC:1(127.0.0.1):. Processed in 0.081478 secs); 31 Dec 2009 04:17:53 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 31 Dec 2009 04:17:53 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Wed, 30 Dec 2009 22:17:53 -0600 (CST) Message-ID: <1521.98.193.1262233073.squirrel@www.l-i-e.com> In-Reply-To: <67.B7.30992.C146B3B4@pb1.pair.com> References: <4B3B50C2.8080500@cschneid.com> <67.B7.30992.C146B3B4@pb1.pair.com> Date: Wed, 30 Dec 2009 22:17:53 -0600 (CST) To: "Hans-Peter Oeri" Cc: internals@lists.php.net User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: Errors, Exceptions et al From: ceo@l-i-e.com ("Richard Lynch") On Wed, December 30, 2009 8:30 am, Hans-Peter Oeri wrote: > Hi! > > Christian Schneider wrote: > >> leads to another inconsistency: Depending on the hosting provider >> and/or >> frameworks/modules used you'd have to write different error >> handlers. > > I understand there are widely differing applications for php, that's > why > I think backwards-compatibility and common defaults across > installations > is a must. Changing defaults system-wide is always risky. In a > shared-hosting situation, the proposed error defaults *must not* be > changed, of course. How exactly do you propose to stop my clients' stupid web hosts from being stupid and changing it, exactly? Cuz I guarantee they'll manage to change it all crazy and make my life miserable. I can see the point of standardizing error handling. But not the point of making it so configurable. And the can of worms you open is that there is simply no agreement on which standard to pick. This is unlikely to have changed with your proposal. Personally, I set up a set_error_handler and set_exception_handler, and if anything I integrate over-rides that, they either do that well and I leave it alone, or they screw it up and I comment it out. But that's just me. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch