-1 on both here, E_STRICT can wait and dynamic static variables are pretty pointless, the workaround is clearer than the kludge..
StaticClass::$options['somekey'] = 'value';

Regards
Alan

Ilia Alshanetsky wrote:

There are 2 PHP 5.2 changes there has been a lot of back and forth flaming going around and we need to finally come to a decision about.

The two topics are:

Inclusion of E_STRICT and E_RECOVERABLE_ERROR into E_ALL
Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

So please throw in your +1/-1 so, that we can have a conclusion on these matters.

Personally, I am against both changes.

I think the error reporting level change is too major change for a minor release such as 5.2 and will cause problems for all the people who use things like E_ALL &~ E_NOTICE and will now see E_STRICT messages that is not their intent to see, with the setting they are only anticipating warnings and errors. Given that most people don't bother to turn of displaying of errors, it could have an affect on quite a few applications, very few big PHP apps can run without generating any E_STRICT messages.

As far as statics, there are no BC reasons not to do it that I can think of, but it just seems wrong to me from a design perspective to allow dynamic creation of static object properties.

Ilia Alshanetsky
Advanced Internet Designs Inc.
[EMAIL PROTECTED]

P.S. Please stay on topic.


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

Reply via email to