mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed generator destruction
This commit is contained in:
parent
479f520d14
commit
c99b767537
1 changed files with 2 additions and 1 deletions
|
@ -597,8 +597,9 @@ ZEND_METHOD(Generator, __wakeup)
|
|||
static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
|
||||
zval_ptr_dtor(&iterator->data);
|
||||
generator->iterator = NULL;
|
||||
zval_ptr_dtor(&iterator->data);
|
||||
zend_iterator_dtor(iterator TSRMLS_CC);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue