Skip to content

Commit

Permalink
Merge pull request #860 from Daniel-KM/fix/php72_deprecated_notice
Browse files Browse the repository at this point in the history
Fixed a deprecation notice in Zend libraries for full compatibility with php 7.2.
  • Loading branch information
zerocrates authored Jul 5, 2018
2 parents ca84c20 + 99a38a4 commit c831893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/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 c831893

Please sign in to comment.