Home » Caching » Cache_Lite » Bug #1216
method clean() when using memoryCaching
Details
| Submitted | 2004-04-15 19:50 UTC |
|---|---|
| From | bmihelac at mihelac dot org |
| Assigned | fab |
| Status | Closed |
| Package | Cache_Lite |
| PHP Version | Irrelevant |
| 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