mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix accidental zval_dtor() usage
This commit is contained in:
parent
da0eeacf1d
commit
83cb751047
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue