diff --git a/ext/intl/dateformat/dateformat.stub.php b/ext/intl/dateformat/dateformat.stub.php index 3e5f178491bda..62150036f926e 100644 --- a/ext/intl/dateformat/dateformat.stub.php +++ b/ext/intl/dateformat/dateformat.stub.php @@ -50,6 +50,11 @@ class IntlDateFormatter * @cvalue UDAT_SHORT_RELATIVE */ public const RELATIVE_SHORT = UNKNOWN; + /** + * @var int + * @cvalue UDAT_PATTERN + */ + public const PATTERN = UNKNOWN; /** * @var int diff --git a/ext/intl/dateformat/dateformat_arginfo.h b/ext/intl/dateformat/dateformat_arginfo.h index 6391c5839e09f..fd14b3af72827 100644 --- a/ext/intl/dateformat/dateformat_arginfo.h +++ b/ext/intl/dateformat/dateformat_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: c3aabab98e4864276f6cb0afb2e3fefad0386481 */ + * Stub hash: c7bec57da82aab1f4470df0f2b725523885a58c2 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) @@ -197,6 +197,12 @@ static zend_class_entry *register_class_IntlDateFormatter(void) zend_declare_class_constant_ex(class_entry, const_RELATIVE_SHORT_name, &const_RELATIVE_SHORT_value, ZEND_ACC_PUBLIC, NULL); zend_string_release(const_RELATIVE_SHORT_name); + zval const_PATTERN_value; + ZVAL_LONG(&const_PATTERN_value, UDAT_PATTERN); + zend_string *const_PATTERN_name = zend_string_init_interned("PATTERN", sizeof("PATTERN") - 1, 1); + zend_declare_class_constant_ex(class_entry, const_PATTERN_name, &const_PATTERN_value, ZEND_ACC_PUBLIC, NULL); + zend_string_release(const_PATTERN_name); + zval const_GREGORIAN_value; ZVAL_LONG(&const_GREGORIAN_value, UCAL_GREGORIAN); zend_string *const_GREGORIAN_name = zend_string_init_interned("GREGORIAN", sizeof("GREGORIAN") - 1, 1); diff --git a/ext/intl/tests/gh12243.phpt b/ext/intl/tests/gh12243.phpt index 80fb41032f343..68bbc47f77bed 100644 --- a/ext/intl/tests/gh12243.phpt +++ b/ext/intl/tests/gh12243.phpt @@ -7,12 +7,11 @@ intl getTimezone(), );