@@ -2038,39 +2038,39 @@ ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce,
2038
2038
} else if (name_len == sizeof (ZEND_GET_FUNC_NAME ) - 1 && !memcmp (lcname , ZEND_GET_FUNC_NAME , sizeof (ZEND_GET_FUNC_NAME ) - 1 )) {
2039
2039
if (fptr -> common .num_args != 1 ) {
2040
2040
zend_error (error_type , "Method %s::%s() must take exactly 1 argument" , ZSTR_VAL (ce -> name ), ZEND_GET_FUNC_NAME );
2041
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2041
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2042
2042
zend_error (error_type , "Method %s::%s() cannot take arguments by reference" , ZSTR_VAL (ce -> name ), ZEND_GET_FUNC_NAME );
2043
2043
}
2044
2044
} else if (name_len == sizeof (ZEND_SET_FUNC_NAME ) - 1 && !memcmp (lcname , ZEND_SET_FUNC_NAME , sizeof (ZEND_SET_FUNC_NAME ) - 1 )) {
2045
2045
if (fptr -> common .num_args != 2 ) {
2046
2046
zend_error (error_type , "Method %s::%s() must take exactly 2 arguments" , ZSTR_VAL (ce -> name ), ZEND_SET_FUNC_NAME );
2047
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2047
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2048
2048
zend_error (error_type , "Method %s::%s() cannot take arguments by reference" , ZSTR_VAL (ce -> name ), ZEND_SET_FUNC_NAME );
2049
2049
}
2050
2050
} else if (name_len == sizeof (ZEND_UNSET_FUNC_NAME ) - 1 && !memcmp (lcname , ZEND_UNSET_FUNC_NAME , sizeof (ZEND_UNSET_FUNC_NAME ) - 1 )) {
2051
2051
if (fptr -> common .num_args != 1 ) {
2052
2052
zend_error (error_type , "Method %s::%s() must take exactly 1 argument" , ZSTR_VAL (ce -> name ), ZEND_UNSET_FUNC_NAME );
2053
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2053
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2054
2054
zend_error (error_type , "Method %s::%s() cannot take arguments by reference" , ZSTR_VAL (ce -> name ), ZEND_UNSET_FUNC_NAME );
2055
2055
}
2056
2056
} else if (name_len == sizeof (ZEND_ISSET_FUNC_NAME ) - 1 && !memcmp (lcname , ZEND_ISSET_FUNC_NAME , sizeof (ZEND_ISSET_FUNC_NAME ) - 1 )) {
2057
2057
if (fptr -> common .num_args != 1 ) {
2058
2058
zend_error (error_type , "Method %s::%s() must take exactly 1 argument" , ZSTR_VAL (ce -> name ), ZEND_ISSET_FUNC_NAME );
2059
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2059
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 )) {
2060
2060
zend_error (error_type , "Method %s::%s() cannot take arguments by reference" , ZSTR_VAL (ce -> name ), ZEND_ISSET_FUNC_NAME );
2061
2061
}
2062
2062
} else if (name_len == sizeof (ZEND_CALL_FUNC_NAME ) - 1 && !memcmp (lcname , ZEND_CALL_FUNC_NAME , sizeof (ZEND_CALL_FUNC_NAME ) - 1 )) {
2063
2063
if (fptr -> common .num_args != 2 ) {
2064
2064
zend_error (error_type , "Method %s::%s() must take exactly 2 arguments" , ZSTR_VAL (ce -> name ), ZEND_CALL_FUNC_NAME );
2065
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2065
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2066
2066
zend_error (error_type , "Method %s::%s() cannot take arguments by reference" , ZSTR_VAL (ce -> name ), ZEND_CALL_FUNC_NAME );
2067
2067
}
2068
2068
} else if (name_len == sizeof (ZEND_CALLSTATIC_FUNC_NAME ) - 1 &&
2069
2069
!memcmp (lcname , ZEND_CALLSTATIC_FUNC_NAME , sizeof (ZEND_CALLSTATIC_FUNC_NAME )- 1 )
2070
2070
) {
2071
2071
if (fptr -> common .num_args != 2 ) {
2072
2072
zend_error (error_type , "Method %s::__callStatic() must take exactly 2 arguments" , ZSTR_VAL (ce -> name ));
2073
- } else if (ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2073
+ } else if (QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 1 ) || QUICK_ARG_SHOULD_BE_SENT_BY_REF (fptr , 2 )) {
2074
2074
zend_error (error_type , "Method %s::__callStatic() cannot take arguments by reference" , ZSTR_VAL (ce -> name ));
2075
2075
}
2076
2076
} else if (name_len == sizeof (ZEND_TOSTRING_FUNC_NAME ) - 1 &&
0 commit comments