ZF-6995: Zend_config : toArray conflict with iterator implements.
Function "toArray()" is created with a foreach on "_data". Interface "iterator" is implemented with : "next($this->_data)" and others functions of iterator directly on "_data".
My problem is function "toArray()" which is in conflict with the iterator interface. For fix that , we must create a clone of object and after we can use "toArray()".
But function "toArray()" should be NOT in conflict with iterator ?
For me, the problem is not "toArray()" but the implement of "Iterator". And is just when we want used "toArray()" AND iterator in same time on same object.
This problem could be apply to all classes with iterator and "toArray()". But I don't know if it's a usage problem or a bug.