Re: Re: [VOTE] Intermediate Results
| From: | Ilia Alshanetsky | Date: | Fri, 06 Oct 2006 16:09:44 +0000 |
| Subject: | Re: Re: [VOTE] Intermediate Results | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-25967@lists.php.net to get a copy of this message | ||
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 classesI 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