mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix fake closure leaking when called from internal func
Introduced in 8e49d7f32f
.
ZEND_CALL_RELEASE_THIS was previously not handled for internal calls but
just for user calls in the zend_leave_helper.
Closes GH-9884
This commit is contained in:
parent
fdd088fc81
commit
cc9dddea38
2 changed files with 19 additions and 0 deletions
|
@ -973,6 +973,10 @@ cleanup_args:
|
|||
zend_interrupt_function(EG(current_execute_data));
|
||||
}
|
||||
}
|
||||
|
||||
if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_RELEASE_THIS)) {
|
||||
OBJ_RELEASE(Z_OBJ(call->This));
|
||||
}
|
||||
}
|
||||
EG(fake_scope) = orig_fake_scope;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue