Commit 9cfe7ec37cb for php
commit 9cfe7ec37cb093f19de5766b57e6baa88012214b
Merge: 80bbb924a24 a843b5538c2
Author: David Carlier <devnexen@gmail.com>
Date: Wed Dec 2 04:10:06 2026 +0000
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
ext/intl: Reject unconstructed IntlListFormatter in format()
# Conflicts:
# ext/intl/listformatter/listformatter_class.cpp
diff --cc ext/intl/listformatter/listformatter_class.cpp
index 87b5efb3f66,5d8de38e8fb..3a2c902d1f2
--- a/ext/intl/listformatter/listformatter_class.cpp
+++ b/ext/intl/listformatter/listformatter_class.cpp
@@@ -141,7 -134,12 +141,12 @@@ PHP_METHOD(IntlListFormatter, format
intl_errors_reset(LISTFORMATTER_ERROR_P(obj));
+ if (UNEXPECTED(LISTFORMATTER_OBJECT(obj) == NULL)) {
+ zend_throw_error(NULL, "Found unconstructed IntlListFormatter");
+ RETURN_THROWS();
+ }
+
- uint32_t count = zend_hash_num_elements(ht);
+ const uint32_t count = zend_hash_num_elements(ht);
if (count == 0) {
RETURN_EMPTY_STRING();
}