Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9057 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99382 invoked by uid 1010); 12 Apr 2004 11:06:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99331 invoked from network); 12 Apr 2004 11:06:32 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 12 Apr 2004 11:06:32 -0000 Received: from pd9519d95.dip.t-dialin.net ([217.81.157.149] helo=hristov.com) by iko.gotobg.net with asmtp (Exim 4.24) id 1BCzGn-00010F-Is; Mon, 12 Apr 2004 14:06:29 +0300 Message-ID: <407A773B.60809@hristov.com> Date: Mon, 12 Apr 2004 13:02:19 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20031230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derick Rethans CC: John Coggeshall , PHP Internals References: <1081740243.14476.11.camel@coogle.localdomain> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com Subject: Re: [PHP-DEV] Exceptions and Errors From: php@hristov.com (Andrey Hristov) Derick Rethans wrote: > > > I think it's a stupid idea (actually OO is a stupid idea but that's > something for another dicussion ;-): > > 1. In order to silently ignore failed queries you still have to put a > stupid try..except block around it. If it's used only in object context. > > 2. KISS: PHP is supposed to be SIMPLE; with all thos advanced OO stuff > writing scripts for PHP starts becoming less and less easy. Sure, > they are already using OO but that's just a notation. Some extensions > are only OO, like DOM, but that doesn't mean that every Joe Average > has any idea on what exceptions are. Please, kepe things simple. > Don't force people. > Supposed to be simple but oriented a little bit to the enterprise, otherwise why do we have a ext/soap? An while for the Joe Average a failed query is just nothing for an application which not fault tolerant this is something different. Joe Average even does not need to use OO interface for simple scripts, while serious application goes OO (except FUDForum ;) but Ilia wanted speeed). So, I don't find any problems of internal classes throwing exceptions in object context. This was something I though is gonna be implemented by the engine which can realize on compile time whether OO is used or not and php_error_docref() to work just like now for procedural code and throw exceptions for OO code (which can break some existing code of course). AFAIR Andi or Zeev explained that's not possible or won't be implemented. Finally, it looks that RC2 won't be released anytime soon and this issue can be fixed in the meantime. Andrey