summaryrefslogtreecommitdiff
path: root/Zend/zend_iterators.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-04-27 15:38:07 +0000
committerMarcus Boerger <helly@php.net>2004-04-27 15:38:07 +0000
commite1cd098925007713926506f44681fbff7f9e7d28 (patch)
treec2a24f98bf34765689eeaa379c09fc802a0a053a /Zend/zend_iterators.h
parente780c42f2135862d81b68935279f3345f33f7991 (diff)
downloadphp-git-e1cd098925007713926506f44681fbff7f9e7d28.tar.gz
- no unneccessary retval initialization
- new c-level iterator handler invalidate_current that is optionally used to clear internal caching like in implementation of Iterator
Diffstat (limited to 'Zend/zend_iterators.h')
-rwxr-xr-xZend/zend_iterators.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_iterators.h b/Zend/zend_iterators.h
index 8cf0435adc..0c83cf4ce2 100755
--- a/Zend/zend_iterators.h
+++ b/Zend/zend_iterators.h
@@ -46,6 +46,9 @@ typedef struct _zend_object_iterator_funcs {
/* rewind to start of data (optional, may be NULL) */
void (*rewind)(zend_object_iterator *iter TSRMLS_DC);
+
+ /* invalidate current value/key (optional, may be NULL) */
+ void (*invalidate_current)(zend_object_iterator *iter TSRMLS_DC);
} zend_object_iterator_funcs;
struct _zend_object_iterator {