1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Fix use-of-uninitialized-value in start_fake_frame
This commit is contained in:
Ilija Tovilo
2023-08-03 09:50:20 +02:00

View File

@@ -915,6 +915,8 @@ cleanup_args:
}
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) {
zend_vm_stack_free_args(call);
zend_vm_stack_free_call_frame(call);