File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 3636#define IS_STATIC_CLOSURE (function ) \
3737 (((function)->common.fn_flags & (ZEND_ACC_STATIC|ZEND_ACC_CLOSURE)) == (ZEND_ACC_STATIC|ZEND_ACC_CLOSURE))
3838
39- static zend_string * zend_partial_symbol_name (const zend_function * function ) {
40- zend_string * name = function -> common .function_name ,
41- * scope = (function -> common .scope ? function -> common .scope -> name : NULL ),
42- * symbol ;
43-
44- if (scope ) {
45- symbol = zend_create_member_string (scope , name );
46- } else {
47- symbol = zend_string_copy (name );
48- }
49-
50- return symbol ;
51- }
52-
5339ZEND_COLD static zend_never_inline void zend_partial_args_underflow (
5440 const zend_function * function , uint32_t args , uint32_t expected )
5541{
56- zend_string * symbol = zend_partial_symbol_name (function );
42+ zend_string * symbol = get_function_or_method_name (function );
5743 const char * limit = function -> common .num_args <= function -> common .required_num_args ?
5844 "exactly" : "at least" ;
5945
@@ -67,7 +53,7 @@ ZEND_COLD static zend_never_inline void zend_partial_args_underflow(
6753ZEND_COLD static zend_never_inline void zend_partial_args_overflow (
6854 const zend_function * function , uint32_t args , uint32_t expected )
6955{
70- zend_string * symbol = zend_partial_symbol_name (function );
56+ zend_string * symbol = get_function_or_method_name (function );
7157
7258 zend_argument_count_error (
7359 "Partial application of %s() expects at most %d arguments, %d given" ,
You can’t perform that action at this time.
0 commit comments