mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use ZEND_TOSTRING_FUNC_NAME
Closes GH-5736.
This commit is contained in:
parent
ebc3043816
commit
48e16a9dba
1 changed files with 1 additions and 1 deletions
|
@ -6465,7 +6465,7 @@ void zend_compile_func_decl(znode *result, zend_ast *ast, zend_bool toplevel) /*
|
|||
}
|
||||
|
||||
zend_compile_params(params_ast, return_type_ast,
|
||||
is_method && zend_string_equals_literal_ci(decl->name, "__toString") ? IS_STRING : 0);
|
||||
is_method && zend_string_equals_literal(method_lcname, ZEND_TOSTRING_FUNC_NAME) ? IS_STRING : 0);
|
||||
if (CG(active_op_array)->fn_flags & ZEND_ACC_GENERATOR) {
|
||||
zend_mark_function_as_generator();
|
||||
zend_emit_op(NULL, ZEND_GENERATOR_CREATE, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue