diff --git a/ext/intl/formatter/formatter.stub.php b/ext/intl/formatter/formatter.stub.php index 20d9b253995..8d824789c5d 100644 --- a/ext/intl/formatter/formatter.stub.php +++ b/ext/intl/formatter/formatter.stub.php @@ -50,8 +50,10 @@ class NumberFormatter public const int ROUND_AWAY_FROM_ZERO = UNKNOWN; /** @cvalue UNUM_ROUND_HALFEVEN */ public const int ROUND_HALFEVEN = UNKNOWN; +#if U_ICU_VERSION_MAJOR_NUM >= 69 /** @cvalue UNUM_ROUND_HALF_ODD */ public const int ROUND_HALFODD = UNKNOWN; +#endif /** @cvalue UNUM_ROUND_HALFDOWN */ public const int ROUND_HALFDOWN = UNKNOWN; /** @cvalue UNUM_ROUND_HALFUP */ diff --git a/ext/intl/formatter/formatter_arginfo.h b/ext/intl/formatter/formatter_arginfo.h index 6fd60fb620a..3869870ffa2 100644 --- a/ext/intl/formatter/formatter_arginfo.h +++ b/ext/intl/formatter/formatter_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: dcd5c897c37ec1e0729736dedada2a6aac4cb673 */ + * Stub hash: 3f8b9961bc62392c50e3871c88ea4d0934d62c6a */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter___construct, 0, 0, 2) ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) @@ -243,12 +243,14 @@ static zend_class_entry *register_class_NumberFormatter(void) zend_string *const_ROUND_HALFEVEN_name = zend_string_init_interned("ROUND_HALFEVEN", sizeof("ROUND_HALFEVEN") - 1, 1); zend_declare_typed_class_constant(class_entry, const_ROUND_HALFEVEN_name, &const_ROUND_HALFEVEN_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); zend_string_release(const_ROUND_HALFEVEN_name); +#if U_ICU_VERSION_MAJOR_NUM >= 69 zval const_ROUND_HALFODD_value; ZVAL_LONG(&const_ROUND_HALFODD_value, UNUM_ROUND_HALF_ODD); zend_string *const_ROUND_HALFODD_name = zend_string_init_interned("ROUND_HALFODD", sizeof("ROUND_HALFODD") - 1, 1); zend_declare_typed_class_constant(class_entry, const_ROUND_HALFODD_name, &const_ROUND_HALFODD_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); zend_string_release(const_ROUND_HALFODD_name); +#endif zval const_ROUND_HALFDOWN_value; ZVAL_LONG(&const_ROUND_HALFDOWN_value, UNUM_ROUND_HALFDOWN); diff --git a/ext/intl/tests/formatter/rounding_modes.phpt b/ext/intl/tests/formatter/rounding_modes.phpt index 2d622f50527..3261e374079 100644 --- a/ext/intl/tests/formatter/rounding_modes.phpt +++ b/ext/intl/tests/formatter/rounding_modes.phpt @@ -2,6 +2,8 @@ NumberFormatter: rounding modes --EXTENSIONS-- intl +--SKIPIF-- += 69.0'); ?> --FILE--