Skip to content

Commit bdbe121

Browse files
committed
Fixed $this release
1 parent ab4ccff commit bdbe121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_generators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void zend_generator_cleanup_unfinished_execution(zend_generator *generato
7676
/* If yield was used as a function argument there may be active
7777
* method calls those objects need to be freed */
7878
while (execute_data->call) {
79-
if (Z_OBJ(execute_data->call->This)) {
79+
if (ZEND_CALL_INFO(execute_data->call) & ZEND_CALL_RELEASE_THIS) {
8080
OBJ_RELEASE(Z_OBJ(execute_data->call->This));
8181
}
8282
execute_data->call = execute_data->call->prev_execute_data;

0 commit comments

Comments
 (0)