At 18:30 16/06/2005, Rasmus Lerdorf wrote:
Derick Rethans wrote:
> Hello,
>
> after reading this very long thread, and problems with having the public
> keyword I decided not to allow any kind of forward compability to be
> introduced into PHP 4.4. Discussion is over.

Yeah, I think the change really needs to be in PHP5 instead.  Right now
the E_STRICT warnings in PHP5 on this stuff are not very useful.  They
are just strict enough to be annoying by warning about "var" but not
strict enough to be useful because there is no warning on undeclared
properties.

I agree with half of what you're saying - I think we should also emit E_STRICT in case of creation of undeclared properties. We already have it in pretty much but it's commented out (probably since there was no E_STRICT when it was introduced, and an E_NOTICE was too aggressive). If there are no objections, I'll uncomment it and change it to E_STRICT.

I think the E_STRICT warnings on var should stay.

Zeev

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

Reply via email to