Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55622 invoked from network); 3 Aug 2012 12:05:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2012 12:05:39 -0000 Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:64031] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/D7-09659-29EBB105 for ; Fri, 03 Aug 2012 08:05:38 -0400 Received: by lago2 with SMTP id o2so326146lag.29 for ; Fri, 03 Aug 2012 05:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=7DWw3npHLS/OsrMuvtsPTvqk1zVo4ssgstViGow3eQg=; b=NOqgPsGAzfwUpRfG97eUe1YjKViVcC1KoTEgzX2uOVOukNpceRSOpguBsYJ3o477Au +oPDMZMh5064nofcCecn7OLdZrR+r9nVVtUSZ6afd/ASM1KIvzVzjqyDOWVZb2G1GkAk h+uzYZ7z18ydz+CUfQODJe5Mk8rg6d+bMpLqaTiH6Iw7nzDCKcAoe8dAHH0DzjSFVzgA eW+QW6CNGjkUA/kS5XPHkZ65KqzjtoorwjVN2KU30c6cmnUoJhyMNcNvHcs3WCUW7Qvi Q6PV1KtKTTDSwq+eBYdeV4SaaQ6CsNROuApN1K03a7Dv/7wQcSBX0AsVZ7pN17ZF/Sw3 5mIQ== MIME-Version: 1.0 Received: by 10.152.104.47 with SMTP id gb15mr1373851lab.45.1343995535318; Fri, 03 Aug 2012 05:05:35 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.112.9.233 with HTTP; Fri, 3 Aug 2012 05:05:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Aug 2012 14:05:35 +0200 X-Google-Sender-Auth: EIy8yqfSb6Iy_sHi-SwRm_D_RJE Message-ID: To: Leigh Cc: Hannes Magnusson , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Why do disabled functions / classes generate a WARNING. From: colder@php.net (Etienne Kneuss) On Fri, Aug 3, 2012 at 1:59 PM, Leigh wrote: >> Because there isn't anything actually wrong. >> >> A fatal error is reserved for things we cannot recover from, but a >> disabled function is easily recoverable. Another great use-case for engine-thrown exceptions. IMHO we should really rethink the "let's not throw exceptions from the engine/normal code so that people don't have to learn them" -- Etienne Kneuss