Skip to content

Commit eafc267

Browse files
authored
zend_compile: Fix incorrect use of ZVAL_NEW_STR() in zend_compile_call() (#21851)
`zend_string_tolower()` might return the original string when it's already fully lowercase.
1 parent d43c523 commit eafc267

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
@@ -5203,7 +5203,7 @@ static void zend_compile_call(znode *result, zend_ast *ast, uint32_t type) /* {{
52035203
}
52045204

52055205
zval_ptr_dtor(&name_node.u.constant);
5206-
ZVAL_NEW_STR(&name_node.u.constant, lcname);
5206+
ZVAL_STR(&name_node.u.constant, lcname);
52075207

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

0 commit comments

Comments
 (0)