Bug #21231 [Com]: The each() function is deprecated in PHP7.2.

From: Date: Fri, 29 Sep 2017 05:41:26 +0000
Subject: Bug #21231 [Com]: The each() function is deprecated in PHP7.2.
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to [email protected] to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=21231&edit=1

 ID:               21231
 Comment by:       ildar dot aim at gmail dot com
 Reported By:      ildar dot aim at gmail dot com
 Summary:          The each() function is deprecated in PHP7.2.
 Status:           Open
 Type:             Bug
 Package:          Cache_Lite
 Package Version:  1.8.0
 PHP Version:      HEAD SVN-2017-07-26
 Roadmap Versions: 
 New Comment:

possible fix is
foreach ($this->_memoryCachingArray as $key => $tmp) {break;} //take
only first


Previous Comments:
------------------------------------------------------------------------

[2017-07-26 06:49:45] ildar

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

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=21231&edit=1


Thread (1 message)

« previous php.pear.bugs (#11403) next »