Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62771 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72927 invoked from network); 3 Sep 2012 23:31:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 23:31:42 -0000 Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:49749] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/4F-20751-DDD35405 for ; Mon, 03 Sep 2012 19:31:41 -0400 Received: by ied7 with SMTP id 7so4561318ied.29 for ; Mon, 03 Sep 2012 16:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7MvvyCpMuwac6ZadEnTWIrM5mvHWNlrvyCbpqOgwocg=; b=h0PI0STTP++5SdgQgBRJhgBVHnTpBg6/O1ZOduz8otdSWW6/Y/YYfdvii24xQTiXCz UuyX+zmDfa2Z8ky0mn+flnSDC30BECggF09y2w0DkGzFSbE2CFcKKoG1f4ki9oXUED50 3xkFqmSe5a62mYlXft1/QAYeuLNKNR33NglhUzJeDKJoemhAa4evq3MJlUslu1+7UDRu nW6eDLDaoKwZlkedgRe1z2/7qT7q/R110KEdkdYueoUCve/lR3loccsAcuH2dEj3FvEp u1XWmLBKRR7D+ybV6MZS6uDHx65JUtu/l3CVoFbghQHhLkRJXzg1KX2oHvrc36wGmgXn RiEw== MIME-Version: 1.0 Received: by 10.43.9.3 with SMTP id ou3mr16199160icb.14.1346715098654; Mon, 03 Sep 2012 16:31:38 -0700 (PDT) Received: by 10.64.25.68 with HTTP; Mon, 3 Sep 2012 16:31:38 -0700 (PDT) In-Reply-To: References: <5040DC47.8000305@ajf.me> <5040F4D9.80206@sugarcrm.com> <5042946A.80204@sugarcrm.com> <5042A7D6.7050001@lerdorf.com> <50452713.3020307@sugarcrm.com> Date: Tue, 4 Sep 2012 01:31:38 +0200 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Are exceptions allowed in php core? From: alex.aulbach@gmail.com (Alex Aulbach) 2012/9/4 Gustavo Lopes : >> Following this logic, we'd have to convert all E_NOTICE and E_STRICT to >> fatal errors or exceptions - they are usually produced by programming >> errors and aren't meant to be caught by surrounding code (actually, >> can't). But I don't see anybody benefiting from this - as I don't see >> anybody benefiting from generator that will explode your application if >> you touch it twice. Nobody is forced to handle an notice-exception like a fatal exception. A notice-exception can be created write something into an error-log and tells PHP not to handle it any more (destroys itself). Could be all done in the construction of the exception. -- Alex Aulbach