Re: [PEPr] Comment on RFC::Requiring E_STRICT Compatibility for NewPEAR Packages

From: Date: Mon, 10 Jul 2006 20:03:51 +0000
Subject: Re: [PEPr] Comment on RFC::Requiring E_STRICT Compatibility for NewPEAR Packages
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43343@lists.php.net to get a copy of this message
Joshua Eichorn wrote:
Alexey Borzov wrote:
Hi, Joshua Eichorn wrote:
What does E_Strict entail as of 5.1.4 I've looked in the PHP manual but I can't seem to find a definition of what it actually means. With var being allowed it doesn't seem like it takes much to get too E_Strict
One has to grep the source, I suppose... I did, and here are the findings: Calling functions not defined as 'static' statically Using the '=& new' construct Using deprecated is_a() Using the old-style constructor Incompatible declarations of inherited methods There are also some E_STRICT errors dealing with references and deprecated methods, but I'm not sure about the context. In a nutshell: all code that does require_once 'PEAR.php'; is not E_STRICT-compatible.
So wouldn't the simple solution be creating a php5 PEAR.php and a new include that gives you the 5 version on 5 and the current version on 4.
That would be a solution that breaks our BC standards (though maybe still sensible). But its also more related to another RFC that passed long ago on what error handling mechanism should be used for PHP5 (even if PEAR.php provides some non error handling related features). regards, Lukas

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