diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-02-26 15:01:08 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-02-26 15:01:08 +0400 |
| commit | 495551aa8c3d66ee16ab91c1fb97329f10c0632c (patch) | |
| tree | 19f39597305afd611b7a6788964f7f14ff120208 /ext/spl/spl_fixedarray.c | |
| parent | a4a86df3c0c47362a6932585a447f87dc9823451 (diff) | |
| download | php-git-495551aa8c3d66ee16ab91c1fb97329f10c0632c.tar.gz | |
Fixed iterators API. zend_iterator_init() has to be used in each get_iterator() callback.
Diffstat (limited to 'ext/spl/spl_fixedarray.c')
| -rw-r--r-- | ext/spl/spl_fixedarray.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index 075df9b2b7..9e5e8b590c 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -1052,6 +1052,9 @@ zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *ob Z_ADDREF_P(object); iterator = emalloc(sizeof(spl_fixedarray_it)); + + zend_iterator_init((zend_object_iterator*)iterator TSRMLS_CC); + iterator->intern.it.data = object; iterator->intern.it.funcs = &spl_fixedarray_it_funcs; iterator->intern.ce = ce; |
