Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9267 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21887 invoked by uid 1010); 16 Apr 2004 17:54:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21697 invoked from network); 16 Apr 2004 17:54:23 -0000 Received: from unknown (HELO mirapoint.kettering.edu) (192.138.137.82) by pb1.pair.com with SMTP; 16 Apr 2004 17:54:23 -0000 Received: from coogle.localdomain (pcp09031773pcs.mtmors01.mi.comcast.net [68.61.83.224]) by mirapoint.kettering.edu (MOS 3.4.5-GR) with ESMTP id ANE09933 (AUTH via LOGINBEFORESMTP); Fri, 16 Apr 2004 13:54:20 -0400 (EDT) Reply-To: john@coggeshall.org To: Derick Rethans Cc: Christian Schneider , PHP Internals In-Reply-To: References: <00cc01c422e1$46a4adc0$0100a8c0@pc07653> <1082070778.17792.18.camel@coogle.localdomain> <1082130174.31819.51.camel@coogle.localdomain> <4080035B.1090404@cschneid.com> <1082132272.31824.56.camel@coogle.localdomain> <40800930.2070302@cschneid.com> Content-Type: text/plain Message-ID: <1082134987.31824.67.camel@coogle.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 16 Apr 2004 13:58:27 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Exceptions and a real example: Tidy From: john@coggeshall.org (John Coggeshall) On Fri, 2004-04-16 at 12:44, Derick Rethans wrote: > I disgree with this behavior too. E_WARNINGs were never supposed to > abort a script, that's what we have E_ERRORs for. (Making E_ERROR an > exception in an OO context is fine, as when it's unhandled it should > abort the script, just like in PHP 4 and all other non-oo extensions). The problem here is that the errors in question truly are warnings, not show-stopping errors. Unless the engine can support a non-fatal exception, i see no reasonable solution short of completely removing Exceptions from use. I'm not prepared to do that, a failure to open a file is an exception in OO-world and that's what should be there. John -- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- John Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/ -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-