On 6-Oct-06, at 11:59 AM, Edin Kadribasic wrote:
I believe that most OO "strictness" fatal errors should be demoted
to notices.
* Changing function signatures in derived classes
I be wary of allowing this because in some instances method signature
can drastically impact behavior for example
foo(&$bar) {} vs foo($bar); I'd prefer to don't reduce this to
E_NOTICE. (-1)
* Accessing non-existing class constant (print myclass::myconst)
+1 on this
* Creating class variables (myclass::$myvar = 1)
You are talking about creating static class variables (dynamic ones
can already be created without even an E_NOTICE). I think if you need
this done, why not create a property dynamically and then access it
statically? I suppose you are using this is a means of having a
global var, in which case you don't have a class instance to init a
property with, but to me it seems like a misuse of the OO
functionality, -1.
Ilia Alshanetsky
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php