summaryrefslogtreecommitdiff
path: root/src/classimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classimpl.cpp')
-rw-r--r--src/classimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classimpl.cpp b/src/classimpl.cpp
index 3999cf3..ea7fdd7 100644
--- a/src/classimpl.cpp
+++ b/src/classimpl.cpp
@@ -1246,7 +1246,7 @@ zend_object_iterator *ClassImpl::getIterator(zend_class_entry *entry, zval *obje
try
{
// create an iterator
- auto *iterator = traversable->getIterator();
+ auto *iterator = new IteratorImpl(traversable->getIterator());
// return the implementation
return iterator->implementation();