Skip to content

Commit c351436

Browse files
committed
Fix string ownership in _compile_verify_variance
1 parent 2e2fb44 commit c351436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4131,7 +4131,7 @@ static void _compile_verify_variance(HashTable *unverified_types)
41314131
zend_op *opline = get_next_op();
41324132
opline->op1_type = IS_CONST;
41334133
opline->opcode = ZEND_VERIFY_VARIANCE;
4134-
LITERAL_STR(opline->op1, lcname);
4134+
LITERAL_STR(opline->op1, zend_string_copy(lcname));
41354135
} ZEND_HASH_FOREACH_END();
41364136
}
41374137

0 commit comments

Comments
 (0)