We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4ccff commit bdbe121Copy full SHA for bdbe121
Zend/zend_generators.c
@@ -76,7 +76,7 @@ static void zend_generator_cleanup_unfinished_execution(zend_generator *generato
76
/* If yield was used as a function argument there may be active
77
* method calls those objects need to be freed */
78
while (execute_data->call) {
79
- if (Z_OBJ(execute_data->call->This)) {
+ if (ZEND_CALL_INFO(execute_data->call) & ZEND_CALL_RELEASE_THIS) {
80
OBJ_RELEASE(Z_OBJ(execute_data->call->This));
81
}
82
execute_data->call = execute_data->call->prev_execute_data;
0 commit comments