Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26207 invoked from network); 24 Aug 2010 18:23:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2010 18:23:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:43664] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/D4-34028-B0E047C4 for ; Tue, 24 Aug 2010 14:23:08 -0400 Received: by vws18 with SMTP id 18so768302vws.29 for ; Tue, 24 Aug 2010 11:23:05 -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=TkK3OQU+BRVZ7SzZh/8umij5s+jmnm0RnevmqJOuFsk=; b=dB6AElxxsRiBoML80BPDorvvx3kexch8iue8Nt9aweW7ZPFarVpvt9yMsgAmsMEx0n 9nAiI8sBscTCAQh22lTCbBgMRBBxouykDrt2OOWssMcVvHnE1bEK//z6FF5gc3nrKvLU wS9yDiOLbKnyeX+Tjkso1hLTcG6bfjcc5dOro= 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=OCkD52+VGWwDAWWxWGCAOmTbHj44aEOYUzXH2QQ+8ToUXpW4RNW8hF6SBfVy+SeEX9 ytCzIhwRl186uT+QMztxHN7ZoXvHxUDZ305HcFH68/kGEq4o9mrsc5utOzp09n0x92iD HdOzQbyBONW+kmDQZUKLDi3iOUVM8JZWmVAac= MIME-Version: 1.0 Received: by 10.220.128.198 with SMTP id l6mr4580729vcs.79.1282674184278; Tue, 24 Aug 2010 11:23:04 -0700 (PDT) Received: by 10.220.191.205 with HTTP; Tue, 24 Aug 2010 11:23:04 -0700 (PDT) In-Reply-To: <4C740BED.4080909@sugarcrm.com> References: <4C73F30A.8080007@sugarcrm.com> <4C7405A5.7040700@sugarcrm.com> <4C740BED.4080909@sugarcrm.com> Date: Tue, 24 Aug 2010 22:23:04 +0400 Message-ID: To: Stas Malyshev Cc: Adam Harvey , Pierre Joye , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants From: indeyets@gmail.com (Alexey Zakhlestin) On Tue, Aug 24, 2010 at 10:14 PM, Stas Malyshev wrote: > Hi! > >> use an E_ constant with error_reporting" and not have the current >> situation where sometimes you use a constant (or constants) and >> sometimes you use a bare number, depending on what you want to >> achieve. > > What's wrong with using 0? 0 means "nothing", how hard is that? ` The only downside is, that programmer will need to know, that E_* constants do mean numbers. With adding E_NONE this knowledge would be unnecessary and people would be able just to think in terms of abstract "symbols" -- Alexey Zakhlestin http://www.milkfarmsoft.com/