Skip to content

Commit c719149

Browse files
committed
Comments
1 parent 46abda7 commit c719149

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Zend/zend_compile.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,14 +4612,15 @@ static void zend_compile_ns_call(znode *result, znode *name_node, zend_ast *args
46124612
{
46134613
int name_constants = zend_add_ns_func_name_literal(Z_STR(name_node->u.constant));
46144614

4615-
/* Find frameless function with same name */
4615+
/* Find frameless function with same name. */
46164616
zend_function *frameless_function = NULL;
46174617
if (args_ast->kind != ZEND_AST_CALLABLE_CONVERT
46184618
&& !zend_args_contain_unpack_or_named(zend_ast_get_list(args_ast))) {
46194619
zend_string *lc_func_name = Z_STR_P(CT_CONSTANT_EX(CG(active_op_array), name_constants + 2));
46204620
frameless_function = zend_hash_find_ptr(CG(function_table), lc_func_name);
46214621
}
46224622

4623+
/* Check whether any frameless handler may actually be used. */
46234624
uint32_t jmp_fl_opnum = 0;
46244625
const zend_frameless_function_info *frameless_function_info = NULL;
46254626
if (frameless_function) {
@@ -4633,14 +4634,15 @@ static void zend_compile_ns_call(znode *result, znode *name_node, zend_ast *args
46334634
}
46344635
}
46354636

4637+
/* Compile ns call. */
46364638
zend_op *opline = get_next_op();
46374639
opline->opcode = ZEND_INIT_NS_FCALL_BY_NAME;
46384640
opline->op2_type = IS_CONST;
46394641
opline->op2.constant = name_constants;
46404642
opline->result.num = zend_alloc_cache_slot();
4641-
46424643
zend_compile_call_common(result, args_ast, NULL, lineno);
46434644

4645+
/* Compile frameless call. */
46444646
if (frameless_function_info) {
46454647
uint32_t jmp_end_opnum = zend_emit_jump(0);
46464648
uint32_t jmp_fl_target = get_next_op_number();

0 commit comments

Comments
 (0)