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

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  


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