Skip to content

Commit 9dc6661

Browse files
committed
Merge branch 'PHP-7.2'
* PHP-7.2: Fixed user-opcode support
2 parents a1a2ad7 + 975d144 commit 9dc6661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_vm_execute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64675,7 +64675,7 @@ ZEND_API int ZEND_FASTCALL zend_vm_call_opcode_handler(zend_execute_data* ex)
6467564675
LOAD_OPLINE();
6467664676
#if defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)
6467764677
#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)
64678-
handler = (opcode_handler_t)zend_vm_get_opcode_handler_func(opline->opcode, opline);
64678+
handler = (opcode_handler_t)zend_vm_get_opcode_handler_func(zend_user_opcodes[opline->opcode], opline);
6467964679
handler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
6468064680
if (EXPECTED(opline != &hybrid_halt_op)) {
6468164681
#else

Zend/zend_vm_gen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,7 @@ function gen_vm($def, $skel) {
27772777
out($f,"#if defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)\n");
27782778
if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
27792779
out($f,"#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)\n");
2780-
out($f, "\thandler = (opcode_handler_t)zend_vm_get_opcode_handler_func(opline->opcode, opline);\n");
2780+
out($f, "\thandler = (opcode_handler_t)zend_vm_get_opcode_handler_func(zend_user_opcodes[opline->opcode], opline);\n");
27812781
out($f, "\thandler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n");
27822782
out($f, "\tif (EXPECTED(opline != &hybrid_halt_op)) {\n");
27832783
out($f,"#else\n");

0 commit comments

Comments
 (0)