Re: Re: [RFC] E_DEPRECATED
| From: | Christian Schneider | Date: | Wed, 25 Oct 2006 23:01:17 +0000 |
| Subject: | Re: Re: [RFC] E_DEPRECATED | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26260@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Wed, October 25, 2006 9:56 am, Christian Schneider wrote: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, - ChrisAnother 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