Re: C Level Iterators and Userland Classes

From: Date: Fri, 17 Feb 2006 00:09:37 +0000
Subject: Re: C Level Iterators and Userland Classes
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-21890@lists.php.net to get a copy of this message
Marcus, one last question ... > You should never touch the data member of that iterator does this mean that i should make a copy of whatever i get from the get_current_data() handler ? There seems to be a bit of inconsistency in dealing with the current element in the iterators For example, the TextIterator reuses the same zval value, whereas the classes in SPL call zval_ptr_dtor() between iterations. clayton

« previous php.internals (#21890) next »