@@ -44,21 +44,21 @@ using icu::Locale;
44
44
45
45
#define ZEND_VALUE_ERROR_INVALID_FIELD (argument, zpp_arg_position ) \
46
46
if (argument < 0 || argument >= UCAL_FIELD_COUNT) { \
47
- zend_argument_value_error (getThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
47
+ zend_argument_value_error (hasThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
48
48
" must be a valid field" ); \
49
49
RETURN_THROWS (); \
50
50
}
51
51
52
52
#define ZEND_VALUE_ERROR_OUT_OF_BOUND_VALUE (argument, zpp_arg_position ) \
53
53
if (UNEXPECTED(argument < INT32_MIN || argument > INT32_MAX)) { \
54
- zend_argument_value_error (getThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
54
+ zend_argument_value_error (hasThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
55
55
" must be between %d and %d" , INT32_MIN, INT32_MAX); \
56
56
RETURN_THROWS (); \
57
57
}
58
58
59
59
#define ZEND_VALUE_ERROR_INVALID_DAY_OF_WEEK (argument, zpp_arg_position ) \
60
60
if (argument < UCAL_SUNDAY || argument > UCAL_SATURDAY) { \
61
- zend_argument_value_error (getThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
61
+ zend_argument_value_error (hasThis () ? ((zpp_arg_position)-1 ) : zpp_arg_position, \
62
62
" must be a valid day of the week" ); \
63
63
RETURN_THROWS (); \
64
64
}
@@ -641,7 +641,7 @@ U_CFUNC PHP_FUNCTION(intlcal_get_locale)
641
641
}
642
642
643
643
if (locale_type != ULOC_ACTUAL_LOCALE && locale_type != ULOC_VALID_LOCALE) {
644
- zend_argument_value_error (getThis () ? 1 : 2 , " must be either Locale::ACTUAL_LOCALE or Locale::VALID_LOCALE" );
644
+ zend_argument_value_error (hasThis () ? 1 : 2 , " must be either Locale::ACTUAL_LOCALE or Locale::VALID_LOCALE" );
645
645
RETURN_THROWS ();
646
646
}
647
647
@@ -886,7 +886,7 @@ U_CFUNC PHP_FUNCTION(intlcal_set_minimal_days_in_first_week)
886
886
887
887
// Use ZEND_VALUE_ERROR_INVALID_DAY_OF_WEEK ?
888
888
if (num_days < 1 || num_days > 7 ) {
889
- zend_argument_value_error (getThis () ? 1 : 2 , " must be between 1 and 7" );
889
+ zend_argument_value_error (hasThis () ? 1 : 2 , " must be between 1 and 7" );
890
890
RETURN_THROWS ();
891
891
}
892
892
@@ -961,7 +961,7 @@ U_CFUNC PHP_FUNCTION(intlcal_set_repeated_wall_time_option)
961
961
}
962
962
963
963
if (option != UCAL_WALLTIME_FIRST && option != UCAL_WALLTIME_LAST) {
964
- zend_argument_value_error (getThis () ? 1 : 2 , " must be either IntlCalendar::WALLTIME_FIRST or "
964
+ zend_argument_value_error (hasThis () ? 1 : 2 , " must be either IntlCalendar::WALLTIME_FIRST or "
965
965
" IntlCalendar::WALLTIME_LAST" );
966
966
RETURN_THROWS ();
967
967
}
@@ -985,7 +985,7 @@ U_CFUNC PHP_FUNCTION(intlcal_set_skipped_wall_time_option)
985
985
986
986
if (option != UCAL_WALLTIME_FIRST && option != UCAL_WALLTIME_LAST
987
987
&& option != UCAL_WALLTIME_NEXT_VALID) {
988
- zend_argument_value_error (getThis () ? 1 : 2 , " must be one of IntlCalendar::WALLTIME_FIRST, "
988
+ zend_argument_value_error (hasThis () ? 1 : 2 , " must be one of IntlCalendar::WALLTIME_FIRST, "
989
989
" IntlCalendar::WALLTIME_LAST, or IntlCalendar::WALLTIME_NEXT_VALID" );
990
990
RETURN_THROWS ();
991
991
}
0 commit comments