François Laupretre wrote on 12/02/2015 14:56:
Sorry to get off-topic but could we raise the 'undefined variable' error to 
E_WARNING, at least ? E_NOTICE seems very low for such an error.

I think the division between E_NOTICE and E_WARNING is a bit arbitrary sometimes, but without a good definition of the difference, I think it's unhelpful to introduce "inflation" by raising severities. Don't forget that while an undefined variable is sometimes an error, it's sometimes just poor coding style, and the user is consciously relying on the implicit null (e.g. $count++, or $hash[$key] = $value, or even echo $hash[$key]).

Perhaps what's needed is a survey of current messages, and an RFC to reclassify them based on some consistent definitions?

Regards,
--
Rowan Collins
[IMSoP]

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

Reply via email to