|
@@ -143,7 +143,7 @@ class Zend_Cache_Core
|
|
|
Zend_Cache::throwException("Options passed were not an array"
|
|
Zend_Cache::throwException("Options passed were not an array"
|
|
|
. " or Zend_Config instance.");
|
|
. " or Zend_Config instance.");
|
|
|
}
|
|
}
|
|
|
- while (list($name, $value) = each($options)) {
|
|
|
|
|
|
|
+ foreach ($options as $name => $value) {
|
|
|
$this->setOption($name, $value);
|
|
$this->setOption($name, $value);
|
|
|
}
|
|
}
|
|
|
$this->_loggerSanity();
|
|
$this->_loggerSanity();
|
|
@@ -158,7 +158,7 @@ class Zend_Cache_Core
|
|
|
public function setConfig(Zend_Config $config)
|
|
public function setConfig(Zend_Config $config)
|
|
|
{
|
|
{
|
|
|
$options = $config->toArray();
|
|
$options = $config->toArray();
|
|
|
- while (list($name, $value) = each($options)) {
|
|
|
|
|
|
|
+ foreach ($options as $name => $value) {
|
|
|
$this->setOption($name, $value);
|
|
$this->setOption($name, $value);
|
|
|
}
|
|
}
|
|
|
return $this;
|
|
return $this;
|