Skip to content

Commit 48e16a9

Browse files
moliatanikic
moliata
authored andcommitted
Use ZEND_TOSTRING_FUNC_NAME
Closes GH-5736.
1 parent ebc3043 commit 48e16a9

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
@@ -6465,7 +6465,7 @@ void zend_compile_func_decl(znode *result, zend_ast *ast, zend_bool toplevel) /*
64656465
}
64666466

64676467
zend_compile_params(params_ast, return_type_ast,
6468-
is_method && zend_string_equals_literal_ci(decl->name, "__toString") ? IS_STRING : 0);
6468+
is_method && zend_string_equals_literal(method_lcname, ZEND_TOSTRING_FUNC_NAME) ? IS_STRING : 0);
64696469
if (CG(active_op_array)->fn_flags & ZEND_ACC_GENERATOR) {
64706470
zend_mark_function_as_generator();
64716471
zend_emit_op(NULL, ZEND_GENERATOR_CREATE, NULL, NULL);

0 commit comments

Comments
 (0)