You are here: Re: E_STRICT notices on PEAR MDB2 « PHP Programming Language « IT news, forums, messages
Re: E_STRICT notices on PEAR MDB2

Posted by Adam Harvey on 09/21/07 08:52

On Thu, 20 Sep 2007 23:38:59 +0000, Sal wrote:
> 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?

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.

Adam

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация