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:
@@ -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 */
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user