E_STRICT (was Re: [PEAR-DEV] Re: [PEPr] Comment on XML::XML_RPC2 (reproposal))

From: Date: Thu, 16 Jun 2005 12:05:25 +0000
Subject: E_STRICT (was Re: [PEAR-DEV] Re: [PEPr] Comment on XML::XML_RPC2 (reproposal))
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38140@lists.php.net to get a copy of this message
Lukas Smith wrote:
Bertrand Mansion wrote:
Another solution would be to make HTTP_Request E_STRICT compliant right now. I am sure Alexey would love to undertake that :)
Just as an FYI there is the potential to get some forward compatibility into PHP 4.4 .. like introducing "public" as an alternative to "var". Any other ideas where simple aliasing could lessen some of our E_STRICT worries?
OK, it seems things are not doable after all. However Rasmus pointed out another interesting detailt to me. If you dont declare a property, they are implicitly defined as public without any notices. There is even a slight performance increase. However this obviously leads to problems when you need to initialize properties. Also phpDocumentor appearently doesnt include phpdoc comments if the associated property is not actually declared. So no solution really, but maybe a worthwhile hint for some situations (not necessarily in PEAR). regards, Lukas

« previous php.pear.dev (#38140) next »