PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Caching » Cache_Lite » Bug #8226

E_STRICT related to PHP5

Details

Request #8226E_STRICT related to PHP5
Submitted2006-07-16 07:34 UTC
Fromtapeshag at hotmail dot com
Assignedfab
StatusSuspended
PackageCache_Lite
PHP Version5.1.2
OSLinux (Debian)
Roadmaps2.0

Comments

[2006-07-16 07:34 UTC] tapeshag at hotmail dot com

Description:
------------
I have error_reporting = E_ERROR|E_STRICT
and using this package in php5. I get various warnings related to php5 new OOP guidelines=>

"Unknown error: var: Deprecated. Please use the public/private/protected modifiers in /usr/share/php/Cache/Lite.php on line 40"

Do we have plans to make it php5 compliant?

Regards
Tapesh Kumar Agarwal

Test script:
---------------
This can be reproduced with any bug

[2006-07-16 09:33 UTC] fab at php dot net

=> Cache_Lite is a PHP4 package. It works with PHP5 but not with the E_STRICT error level.

You have to modify your php.ini or use the following line before using Cache_Lite :

error_reporting(E_ALL & ~E_STRICT);

=> By the way, you should upgrade to php 5.1.4 because E_STRICT changed in this version.

=> I plan to release a 1.8 version which will be E_STRICT compliant (with PHP >= 5.1.4)