Skip to content

Commit fd2f588

Browse files
nielsdosiluuu1994
andcommitted
Fix GH-10570: Assertion `(key)->h != 0 && "Hash must be known"' failed.
Fixes GH-10570, see GH-10570 for analysis. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
1 parent 18b611d commit fd2f588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,6 +2924,7 @@ static zend_op *zend_delayed_compile_prop(znode *result, zend_ast *ast, uint32_t
29242924
opline = zend_delayed_emit_op(result, ZEND_FETCH_OBJ_R, &obj_node, &prop_node);
29252925
if (opline->op2_type == IS_CONST) {
29262926
convert_to_string(CT_CONSTANT(opline->op2));
2927+
zend_string_hash_val(Z_STR_P(CT_CONSTANT(opline->op2)));
29272928
opline->extended_value = zend_alloc_cache_slots(3);
29282929
}
29292930

0 commit comments

Comments
 (0)