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

Bug #21231 The each() function is deprecated in PHP7.2.
Submitted: 2017-07-26 10:49 UTC
From: ildar Assigned: ashnazg
Status: Closed Package: Cache_Lite (version 1.8.0)
PHP Version: HEAD SVN-2017-07-26 OS:
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 : 8 + 23 = ?

 
 [2017-07-26 10:49 UTC] ildar (Ildar Amankulov)
Description: ------------ ./Cache_Lite-1.8.0/Cache/Lite/Function.php:87: while (list($name, $value) = each($options)) { ./Cache_Lite-1.8.0/Cache/Lite.php:711: list($key, ) = each($this->_memoryCachingArray); https://wiki.php.net/rfc/deprecations_php_7_2#each http://php.net/each

Comments

 [2017-09-29 05:41 UTC] ildar (Ildar Amankulov)
possible fix is foreach ($this->_memoryCachingArray as $key => $tmp) {break;} //take only first
 [2018-02-13 13:14 UTC] ashnazg (Chuck Burgess)
-Assigned To: +Assigned To: ashnazg
 [2018-02-13 13:15 UTC] ashnazg (Chuck Burgess)
-Status: Assigned +Status: Closed
Fixed by PR #7.