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


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to