Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.4
-
Component/s: Zend_Config
-
Labels:None
Description
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.
Nicolas CHOTIN.
Would you mind providing the code you're using along with the results you're getting and the results you are expecting?
Thanks,
Rob...