1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00

SAVE_OPLINE in NULL_HANDLER

Let's avoid crashing before the nice error message gets printed...
This commit is contained in:
Nikita Popov
2020-08-11 15:14:50 +02:00
parent f491dabe40
commit 42eda5160d
2 changed files with 2 additions and 0 deletions

View File

@@ -49860,6 +49860,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_NULL_HANDLER(ZEND_OPCODE_HANDL
{
USE_OPLINE
SAVE_OPLINE();
zend_error_noreturn(E_ERROR, "Invalid opcode %d/%d/%d.", OPLINE->opcode, OPLINE->op1_type, OPLINE->op2_type);
ZEND_VM_NEXT_OPCODE(); /* Never reached */
}

View File

@@ -1514,6 +1514,7 @@ function gen_null_handler($f) {
out($f,"{\n");
out($f,"\tUSE_OPLINE\n");
out($f,"\n");
out($f,"\tSAVE_OPLINE();\n");
out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", OPLINE->opcode, OPLINE->op1_type, OPLINE->op2_type);\n");
out($f,"\tZEND_VM_NEXT_OPCODE(); /* Never reached */\n");
out($f,"}\n\n");