1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00

Fixed user-opcode support

This commit is contained in:
Dmitry Stogov
2018-03-14 09:41:25 +03:00
parent 2db6d8e415
commit 975d144027
2 changed files with 2 additions and 2 deletions

View File

@@ -69301,7 +69301,7 @@ ZEND_API int zend_vm_call_opcode_handler(zend_execute_data* ex)
LOAD_OPLINE();
#if defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)
#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)
handler = (opcode_handler_t)zend_vm_get_opcode_handler_func(opline->opcode, opline);
handler = (opcode_handler_t)zend_vm_get_opcode_handler_func(zend_user_opcodes[opline->opcode], opline);
handler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
if (EXPECTED(opline != &hybrid_halt_op)) {
#else

View File

@@ -2599,7 +2599,7 @@ function gen_vm($def, $skel) {
out($f,"#if defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)\n");
if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
out($f,"#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)\n");
out($f, "\thandler = (opcode_handler_t)zend_vm_get_opcode_handler_func(opline->opcode, opline);\n");
out($f, "\thandler = (opcode_handler_t)zend_vm_get_opcode_handler_func(zend_user_opcodes[opline->opcode], opline);\n");
out($f, "\thandler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n");
out($f, "\tif (EXPECTED(opline != &hybrid_halt_op)) {\n");
out($f,"#else\n");