E_STRICT notices on PEAR MDB2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have error_reporting set at  E_ALL | E_STRICT and get 35 Strict
Standards notices every time I load MDB2.  Is this something to be
concerned about, and is this typical of other PEAR packages?

Re: E_STRICT notices on PEAR MDB2

Hmmm, could try upgrading the modules that are giving errors.

Quoted text here. Click to load it

Re: E_STRICT notices on PEAR MDB2

On Thu, 20 Sep 2007 23:38:59 +0000, Sal wrote:
Quoted text here. Click to load it

It's because MDB2 retains compatibility with PHP4. Pretty much all the  
strict messages are related to using is_a() instead of the PHP5  
instanceof operator and calling methods statically that don't have the  
PHP5 static keyword. Neither should be a problem in practice.

As for other PEAR packages, that depends on the package. Newer PEAR  
packages are PHP5-only, and generally should be E_STRICT compliant (and  
if they're not, report it as a bug), but older packages (which includes  
pretty much all the popular ones, judging by the stats page) retain PHP4  
compatibility and hence will have similar issues with E_STRICT.


To e-mail: don't make an example out of me!

Site Timeline