Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76156 invoked from network); 24 Aug 2010 13:46:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2010 13:46:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:46633] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/82-60897-F2DC37C4 for ; Tue, 24 Aug 2010 09:46:23 -0400 Received: by wyf19 with SMTP id 19so687701wyf.29 for ; Tue, 24 Aug 2010 06:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Fa9x3aN3ggcqTrWoq54eghRVaZ6YxVS4GTuCu9R9d7o=; b=oDNT9qwhqPLER6GJsI33BGu3I8mkv5M6iwZlwXinpV0qpz/CgawNdrtu/B+4AWelvy RXrfGgLYoxGlR4f203XEc8i5T6zkRZMbI1IXzsOKn5gWRJE+3heVqoOiBaKUbzl52x9b 33xWXQHILb7wzqi2JI2zz9GuQIsGZTINQC5RU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cSv87DRGAyCVEt0OIXcTpGqxc2kbxj/jm+BFktpXztmM2iIA+g5V0Ef2B7SDrLFdhR MSF7t8y3tb8LRZKbcgUv9VKmm4X2kxLOmSxaOv7sii10nHsgEyTzgq00HR5onik3eFb7 SUpGGSXSVVCYPSEdU5fpJyXPt3GGK13YEs660= MIME-Version: 1.0 Received: by 10.227.135.16 with SMTP id l16mr5946389wbt.158.1282657580174; Tue, 24 Aug 2010 06:46:20 -0700 (PDT) Received: by 10.227.138.225 with HTTP; Tue, 24 Aug 2010 06:46:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Aug 2010 15:46:20 +0200 Message-ID: To: Adam Harvey Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Aug 24, 2010 at 12:49 PM, Adam Harvey wrote: > http://bugs.php.net/52563 suggests adding an E_NONE constant (set to 0) to > go with the various other E_* constants we have. I've hacked up a quick > patch against trunk (attached to the report) that would add that, but don't > have Zend karma to add it, so I'll open it up to the floor: (a) should we > have it, and (b) if so, can someone please commit it? > > Johannes has pointed out on IRC that E_NONE does already exist in some > projects, so that's an argument against it. I don't see it as an argument against as the fix is rather easy: if (!defined('E_NONE')) { ... But it should not be added in a minor release. > Kalle also suggested another constant within that request to provide a > symbolic version of error_reporting = -1, so there's a second patch in that > report to add an E_EVERYTHING constant which acts as E_ALL once did: it > turns on all error reporting. > > I'm not terribly attached to either the names or, indeed, the request in > general, but it'd be nice to get this one closed one way or t'other. I would like something like E_DEVELOPMENT (notices, warnings, deprecated and the classic fatal), to strongly advice developers to use it. On the same line, we could add E_PRODUCTION to set the error reporting we recommend in production (fatal and warning). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org