cvs: pear /Cache_Lite Lite.php
| From: | Fabien MARTY | Date: | Wed, 16 Nov 2005 22:02:11 +0000 |
| Subject: | cvs: pear /Cache_Lite Lite.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36337@lists.php.net to get a copy of this message | ||
fab Wed Nov 16 17:02:11 2005 EDT
Modified files:
/pear/Cache_Lite Lite.php
Log:
still some mistakes (thanks to Zend Code Analyzer)
http://cvs.php.net/diff.php/pear/Cache_Lite/Lite.php?r1=1.33&r2=1.34&ty=u
Index: pear/Cache_Lite/Lite.php
diff -u pear/Cache_Lite/Lite.php:1.33 pear/Cache_Lite/Lite.php:1.34
--- pear/Cache_Lite/Lite.php:1.33 Wed Nov 16 16:58:20 2005
+++ pear/Cache_Lite/Lite.php Wed Nov 16 17:02:11 2005
@@ -19,7 +19,7 @@
*
* @package Cache_Lite
* @category Caching
-* @version $Id: Lite.php,v 1.33 2005/11/16 21:58:20 fab Exp $
+* @version $Id: Lite.php,v 1.34 2005/11/16 22:02:11 fab Exp $
* @author Fabien MARTY <fab@php.net>
*/
@@ -613,7 +613,7 @@
{
$this->_memoryCachingArray[$this->_file] = $data;
if ($this->_memoryCachingCounter >= $this->_memoryCachingLimit) {
- list($key, $value) = each($this->_memoryCachingArray);
+ list($key, ) = each($this->_memoryCachingArray);
unset($this->_memoryCachingArray[$key]);
} else {
$this->_memoryCachingCounter = $this->_memoryCachingCounter + 1;
@@ -760,6 +760,7 @@
default:
$this->raiseError('Unknown controlType ! (available values are only
\'md5\', \'crc32\', \'strlen\')', -5);
}
+ return false;
}
}