Re: PHP 5.3 Suggested Feature List
| From: | Michael Wallner | Date: | Tue, 11 Sep 2007 20:00:42 +0000 |
| Subject: | Re: PHP 5.3 Suggested Feature List | ||
| References: | 1 2 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-32270@lists.php.net to get a copy of this message | ||
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?
mike@honeybadger:~/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