Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants
| From: | Pierre Joye | Date: | Tue, 24 Aug 2010 18:33:05 +0000 |
| Subject: | Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49500@lists.php.net to get a copy of this message | ||
On Tue, Aug 24, 2010 at 8:14 PM, Stas Malyshev <smalyshev@sugarcrm.com> 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? `
What's the problem actually? It is consistent with the rest. Yes, it
is always possible to add & 0 or || 1. But that's off base.
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org