summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-27 16:56:17 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-27 16:56:17 +0800
commit122cc5f495b46e8d85a98ee7c25500c4cef4ced1 (patch)
tree4ca47423b68d42c54ad1db681371c3954a66316e /ext/date/php_date.c
parent95320f1f468f7576c3536f42d5c03e118e45be23 (diff)
parent054917619af45870602b3ee669c86397b8162bda (diff)
downloadphp-git-122cc5f495b46e8d85a98ee7c25500c4cef4ced1.tar.gz
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 05dccf4f8e..1489ac8184 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -1976,6 +1976,8 @@ zend_object_iterator *date_object_period_get_iterator(zend_class_entry *ce, zval
zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
}
+ zend_iterator_init((zend_object_iterator*)iterator TSRMLS_CC);
+
Z_ADDREF_P(object);
iterator->intern.data = (void*) dpobj;
iterator->intern.funcs = &date_period_it_funcs;