mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix use-of-uninitialized-value in start_fake_frame
Closes GH-11732
This commit is contained in:
parent
94127c53aa
commit
ed27d70d9a
1 changed files with 2 additions and 0 deletions
|
@ -897,6 +897,8 @@ cleanup_args:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_MAY_HAVE_UNDEF)) {
|
if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_MAY_HAVE_UNDEF)) {
|
||||||
|
/* zend_handle_undef_args assumes prev_execute_data is initialized. */
|
||||||
|
call->prev_execute_data = NULL;
|
||||||
if (zend_handle_undef_args(call) == FAILURE) {
|
if (zend_handle_undef_args(call) == FAILURE) {
|
||||||
zend_vm_stack_free_args(call);
|
zend_vm_stack_free_args(call);
|
||||||
zend_vm_stack_free_call_frame(call);
|
zend_vm_stack_free_call_frame(call);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue