Richard Lynch wrote:
On Wed, October 25, 2006 9:56 am, Christian Schneider wrote:
Another idea (I haven't seen skimming through the replies):
Move use of undefined variable, property and index from E_NOTICE to
E_STRICT as it is a coding style question some people use to find
typos.

I'd be totally -1 on that...

Using un-initialized variables will lead the newbie scripter into all
kinds of problems if you don't break that habit while they are
young...

I think php.ini default should have E_NOTICE "on" and have said so
since version 4.x, maybe even 3.x

Make E_STRICT on by default and you'd have the same "newbie-protection". But that's an independent question (default error reporting level).

Uninitialized variables IMHO fall exactly into the same category as OO-non-strictness: Some people consider the comfort factor worth the added risk of not catching a typo.

So it's not about having the feature of reporting uninitialized variables or not, it's just about what error level to assign to it.

My two cents,
- Chris

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

Reply via email to