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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 21 - 2 = ?

 
 [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.