Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9264 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54176 invoked by uid 1010); 16 Apr 2004 16:13:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54151 invoked from network); 16 Apr 2004 16:13:52 -0000 Received: from unknown (HELO mirapoint.kettering.edu) (192.138.137.82) by pb1.pair.com with SMTP; 16 Apr 2004 16:13:52 -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 ANE05834 (AUTH via LOGINBEFORESMTP); Fri, 16 Apr 2004 12:13:45 -0400 (EDT) Reply-To: john@coggeshall.org To: Christian Schneider Cc: Derick Rethans , PHP Internals In-Reply-To: <4080035B.1090404@cschneid.com> References: <00cc01c422e1$46a4adc0$0100a8c0@pc07653> <1082070778.17792.18.camel@coogle.localdomain> <1082130174.31819.51.camel@coogle.localdomain> <4080035B.1090404@cschneid.com> Content-Type: text/plain Message-ID: <1082132272.31824.56.camel@coogle.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 16 Apr 2004 12:17:52 -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:01, Christian Schneider wrote: > I think this is wrong. > For E_WARNING the program flow continues unchanged whether you handle > the return value of e.g. fopen or not. > For exceptions you _have_ to handle it, otherwise your program aborts. > Two different things. I agree, however ZE2 does not provide non-fatal exceptions so I consider this an engine limitation rather than a implementation error. This is the best compromise I can reach without discarding exceptions entirely, which I believe is even more wrong for OO code. John -- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- John Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/ -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-