mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fixed zend_vm_call_opcode_handler(). Make phpdbg work with HYBRID VM.
This commit is contained in:
parent
b5e857b905
commit
71bfb430af
1 changed files with 9 additions and 4 deletions
|
@ -2531,16 +2531,21 @@ function gen_vm($def, $skel) {
|
|||
out($f, "#endif\n");
|
||||
out($f, "\n");
|
||||
out($f, "\tLOAD_OPLINE();\n");
|
||||
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_get_real_opcode_handler(opline);\n");
|
||||
out($f, "\thandler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n");
|
||||
out($f,"#elif defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)\n");
|
||||
} else {
|
||||
out($f,"#if defined(ZEND_VM_FP_GLOBAL_REG) && defined(ZEND_VM_IP_GLOBAL_REG)\n");
|
||||
out($f, "\tif (EXPECTED(opline != &hybrid_return_op)) {\n");
|
||||
out($f,"#else\n");
|
||||
}
|
||||
out($f, "\t((opcode_handler_t)OPLINE->handler)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n");
|
||||
if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
|
||||
out($f, "\tif (EXPECTED(opline)) {\n");
|
||||
out($f,"#endif\n");
|
||||
} else {
|
||||
out($f, "\tif (EXPECTED(opline)) {\n");
|
||||
}
|
||||
out($f, "\t\tret = execute_data != ex ? (int)(execute_data->prev_execute_data != ex) + 1 : 0;\n");
|
||||
out($f, "\t\tSAVE_OPLINE();\n");
|
||||
out($f, "\t} else {\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue