mirror of
https://github.com/php/php-src.git
synced 2026-04-13 02:52:48 +02:00
Add missing addref for MATCH_ERROR operand
This commit is contained in:
@@ -5368,7 +5368,10 @@ void zend_compile_match(znode *result, zend_ast *ast)
|
||||
opline->extended_value = get_next_op_number();
|
||||
}
|
||||
|
||||
zend_emit_op(NULL, ZEND_MATCH_ERROR, &expr_node, NULL);
|
||||
zend_op *opline = zend_emit_op(NULL, ZEND_MATCH_ERROR, &expr_node, NULL);
|
||||
if (opline->op1_type == IS_CONST) {
|
||||
Z_TRY_ADDREF_P(CT_CONSTANT(opline->op1));
|
||||
}
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < arms->children; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user