Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10693 invoked from network); 25 Aug 2010 17:47:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2010 17:47:32 -0000 Authentication-Results: pb1.pair.com header.from=tyler@n49.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyler@n49.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain n49.com designates 216.139.238.141 as permitted sender) X-PHP-List-Original-Sender: tyler@n49.com X-Host-Fingerprint: 216.139.238.141 server5.n49.com Linux 2.5 (sometimes 2.4) (4) Received: from [216.139.238.141] ([216.139.238.141:57800] helo=server5.n49.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/71-02448-137557C4 for ; Wed, 25 Aug 2010 13:47:30 -0400 Received: from [127.0.0.1] (cmr-208-97-116-42.cr.net.cable.rogers.com [208.97.116.42]) by server5.n49.com (8.13.1/8.13.1) with ESMTP id o7PHlL7G006971; Wed, 25 Aug 2010 13:47:22 -0400 Message-ID: <4C75571C.6050004@n49.com> Date: Wed, 25 Aug 2010 13:47:08 -0400 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: =?UTF-8?B?RGF2aWQgWsO8bGtl?= CC: internals@lists.php.net References: <4C751BDD.3090907@php.net> <4C751E4F.3020901@php.net> <4C751FD8.8020706@n49.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 100825-0, 25/08/2010), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants From: tyler@n49.com (Tyler Lawson) David Zülke wrote: > > That's because you're doing it wrong: > > error_reporting(E_NONE | E_ERROR); > > - David > > You're correct that I did it wrong and I apologize. Your example is how it would be properly written out and it would work the way the programmer expects it. My point was that E_NONE has a different meaning than 0 - even if E_NONE==0. I've never seen "error_reporting(0 | E_ERROR);" because that's just silly. People who do understand bit masks would know it's useless, and people who don't would just copy off the internet from people who know better. In short, I don't want to see "error_reporting(E_NONE | E_ERROR);" in anybody's PHP code. Even if it is harmless. Maybe I'm just a little too wound up about such things, though. Just my two cents. -- Tyler Lawson