Steph Fox wrote:
>> 18) Introduce concept of "strict classes" that do not permit dynamic
>> property creation
>
> -1, this whole idea just sounds so weird for PHP.
Sure, but how PHPish is this fatal error?
[EMAIL PROTECTED]:~/build/php-5.2-debug$ cli -r 'class c{} c::$x=1;'
Fatal error: Access to undeclared static property: c::$x in Command
line code on line 1
The idea, as far as I understood, was to allow this things with
non-strict classes once we have strict classes.
Regards,
--
Michael
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php