Skip to content

Commit 6f1df9e

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: zend_compile: Fix incorrect use of `ZVAL_NEW_STR()` in `zend_compile_call()` (#21851)
2 parents 9a530a1 + 5f989aa commit 6f1df9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5465,7 +5465,7 @@ static void zend_compile_call(znode *result, const zend_ast *ast, uint32_t type)
54655465
}
54665466

54675467
zval_ptr_dtor(&name_node.u.constant);
5468-
ZVAL_NEW_STR(&name_node.u.constant, lcname);
5468+
ZVAL_STR(&name_node.u.constant, lcname);
54695469

54705470
opline = zend_emit_op(NULL, ZEND_INIT_FCALL, NULL, &name_node);
54715471
opline->result.num = zend_alloc_cache_slot();

0 commit comments

Comments
 (0)