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 #1216

method clean() when using memoryCaching

Details

Submitted2004-04-15 19:50 UTC
Frombmihelac at mihelac dot org
Assignedfab
StatusClosed
PackageCache_Lite
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-04-15 19:50 UTC] bmihelac at mihelac dot org

Description:
------------
I think that there is an bug in method clean(), when using memoryCaching. error seems to be in method clean(), line 360

while (list($key, $value) = each($this->_memoryCaching)) {

as _memoryCaching is of type boolean (it switch on or off cache) and not an array PHP issues an warning when error reporting is set to all:

Warning: Variable passed to each() is not an array or object in C:\php-4.3.3-Win32\pear\Cache\Lite.php on line 360

I think these could be easily fixed.
Best regards,
Bojan Mihelac

[2004-04-21 14:48 UTC] bmihelac at mihelac dot org

Hi, I downloaded the CVS version and is working ok now.
Thanks
Bojan M