Skip to content

Commit

Permalink
php 7.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
falkenhawk committed Dec 12, 2017
1 parent 07ebfab commit 3284983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Cache/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(array $options = array())
public function setDirectives($directives)
{
if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
while (list($name, $value) = each($directives)) {
foreach ($directives as $name => $value) {
if (!is_string($name)) {
Zend_Cache::throwException("Incorrect option name : $name");
}
Expand Down

0 comments on commit 3284983

Please sign in to comment.