Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9245 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4166 invoked by uid 1010); 16 Apr 2004 00:07:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4043 invoked from network); 16 Apr 2004 00:07:25 -0000 Received: from unknown (HELO mail.mbobo.org) (213.133.123.182) by pb1.pair.com with SMTP; 16 Apr 2004 00:07:25 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.mbobo.org (Postfix) with ESMTP id 474CB576FCA; Fri, 16 Apr 2004 02:07:25 +0200 (CEST) Received: from mail.mbobo.org ([127.0.0.1]) by localhost (debian [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05696-06; Fri, 16 Apr 2004 02:07:23 +0200 (CEST) Received: from [10.200.1.52] (adsl-68-120-96-254.dsl.sntc01.pacbell.net [68.120.96.254]) by mail.mbobo.org (Postfix) with ESMTP id 1C1FC576F35; Fri, 16 Apr 2004 02:07:22 +0200 (CEST) In-Reply-To: <1082070778.17792.18.camel@coogle.localdomain> References: <00cc01c422e1$46a4adc0$0100a8c0@pc07653> <1082070778.17792.18.camel@coogle.localdomain> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <07508FE8-8F3A-11D8-B08C-000A95E073A0@php.net> Content-Transfer-Encoding: 7bit Cc: Nuno Lopes , PHP Internals Date: Thu, 15 Apr 2004 17:07:20 -0700 To: john@coggeshall.org X-Mailer: Apple Mail (2.613) X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at mbobo.org Subject: Re: [PHP-DEV] Exceptions and a real example: Tidy From: sterling@php.net (Sterling Hughes) On Apr 15, 2004, at 4:12 PM, John Coggeshall wrote: > Attached is a patch which I hope will keep people happy when it comes > to > specifically the Tidy extension. I'd like some feedback on this before > I > commit it / throw it away: > > Changes: > > - All errors were re-evaluated, and those (such as a bogus config > option) were demoted to E_NOTICE or promoted to E_ERROR as > necessary > - Those errors which are truly E_WARNING will behave as such when > called from a procedural context. If called from an object oriented > context, they will be represented as exceptions. > > I also looked at the bugs you reported, Nuno but I couldn't reproduce > some of them. In either case, the ones i could reproduced should be > fixed. > - TIDY_THROW("Could not retrieve key from option array"); + zend_error(E_ERROR, "Could not retrieve key from option array"); Also wrong. You never through an E_ERROR for this sort of thing. -sterling