Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.3

Request #5921 unused var
Submitted: 2005-11-10 11:48 UTC
From: moosh Assigned: fab
Status: Closed Package: Cache_Lite
PHP Version: Irrelevant OS: xp
Roadmaps: (Not assigned)    
Subscription  


 [2005-11-10 11:48 UTC] moosh
Description: ------------ function _cleanDir($dir, $group = false, $mode = 'ingroup') { .... while (list($key, $value) = each($this->_memoryCachingArray)) { if (strpos($key, $motif, 0)) { unset($this->_memoryCachingArray[$key]); $this->_memoryCachingCounter = $this->_memoryCachingCounter - 1; } } ... $value is never use list($key, ) is good and probably (list($key, $value) = each($this->_memoryCachingArray)) ca be simplified

Comments

 [2005-11-10 13:14 UTC] fab at php dot net
thanks :) I will commit it into the CVS version next week
 [2005-11-15 21:55 UTC] fab at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.