From bc32a6bd4e544c1c102c6b8e786bd3b5cf24e392 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Tue, 2 Jul 2024 11:53:20 +0200 Subject: [PATCH] Fix syntax error in SWITCH VM Closes GH-14768 --- Zend/zend_vm_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index f731653a248..2c604d97249 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -8024,7 +8024,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY) /* Exception was thrown before executing any op */ if (UNEXPECTED(!throw_op)) { - ZEND_VM_DISPATCH_TO_HELPER(zend_dispatch_try_catch_finally_helper, try_catch_offset, -1, 0, 0); + ZEND_VM_DISPATCH_TO_HELPER(zend_dispatch_try_catch_finally_helper, try_catch_offset, -1, op_num, 0); } uint32_t throw_op_num = throw_op - EX(func)->op_array.opcodes;