diff --git a/lib/Zend/Cache/Backend.php b/lib/Zend/Cache/Backend.php index 8164a32f23c..df6621763c9 100644 --- a/lib/Zend/Cache/Backend.php +++ b/lib/Zend/Cache/Backend.php @@ -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"); }