Issues

ZF-3408: Zend_Config does not decrease $_count when node is unset()

Description

The count() method, defined by the Countable interface, uses $this->_count, which is set in the constructor of Zend_Config. The problem now is, when you unset a value (done via the magic method __unset()), $this->_count is not decreased by one. So when you count() the Zend_Config object after you unset a node, you get the wrong number.

Comments

Thanks for finding this!

Fixed on trunk (svn r9627) Fixed on 1.5 branch (svn r9628)

Regards,

Rob...

Updating for the 1.6.0 release.