Mistake at work with Zend_Config
Example

test.xml:
<config>
 <root>
  <test>
  </test
 </root>
</config>

$config = new Zend_Config(Zend_Config_Xml::load('test.xml', 'root')

We receive a mistake in line 124 Zend_Config

    /**
     * Return an associative array of the stored data.
     *
     * @return array
     */
    public function asArray()
    {
        $array = array();
124!       foreach ($this->_data as $key=>$value) {
            if (is_object($value)) {
                $array[$key] = $value->asArray();
            } else {
                $array[$key] = $value;
            }
        }
        return $array;
    }

The offer добивить a code:
    if ($this->_data === NULL) {
            return $array;
        }
        
  Before foreach

Reply via email to