From: Bob Weinand Date: Thu, 7 Jan 2016 14:12:35 +0000 (+0100) Subject: Fix accidental zval_dtor() usage X-Git-Tag: php-7.0.3RC1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83cb751047e6606b3472fabdb2ba6e39de586a84;p=php Fix accidental zval_dtor() usage --- diff --git a/Zend/zend_generators.c b/Zend/zend_generators.c index 09cbb9a5ee..4861e45919 100644 --- a/Zend/zend_generators.c +++ b/Zend/zend_generators.c @@ -512,7 +512,7 @@ ZEND_API zend_generator *zend_generator_update_current(zend_generator *generator EG(current_execute_data) = original_execute_data; } else { - zval_dtor(&root->value); + zval_ptr_dtor(&root->value); ZVAL_COPY(&root->value, &root->node.parent->value); ZVAL_COPY(ZEND_CALL_VAR(root->execute_data, yield_from->result.var), &root->node.parent->retval); }