Commit b651fc809ae for php
commit b651fc809ae9fe158be680f25cdcd92efb280902
Merge: 4956155fd61 b51e1b6e869
Author: Weilin Du <weilindu@php.net>
Date: Thu Dec 3 18:00:37 2026 +0800
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
ext/intl: Reset the intl error in Locale::isRightToLeft() (#26040)
diff --cc NEWS
index 1ec1b657346,1703f0597a9..3ccfb8ae88e
--- a/NEWS
+++ b/NEWS
@@@ -6,9 -6,11 +6,13 @@@ PH
. Fixed enchant_broker_set_dict_path() and enchant_broker_get_dict_path()
returning null with libenchant 2. Both now return false. (lacatoire)
+ - Intl:
+ . Fixed Locale::isRightToLeft() and locale_is_right_to_left() retaining a
+ stale global intl error after a successful call. (ChrisAbner)
- . Fixed NULL pointer dereference in IntlListFormatter::format() on an
- unconstructed object. (hohphu8)
++
+- Opcache:
+ . Fixed segfault when array_map() is called with a first-class callable and
+ an array that becomes constant only after optimization. (Pawel Wankiewicz)
- Standard:
. Fixed bug GH-25959 ("consumed" stream filter loses or repeats data).
diff --cc ext/intl/locale/locale_methods.cpp
index 37b3407c33e,15a3f4f8e22..078daa8b259
--- a/ext/intl/locale/locale_methods.cpp
+++ b/ext/intl/locale/locale_methods.cpp
@@@ -1713,7 -1640,7 +1713,7 @@@ U_CFUNC PHP_FUNCTION(locale_accept_from
}
/* }}} */
--U_CFUNC PHP_FUNCTION(locale_is_right_to_left)
++PHP_INTL_FUNCTION_WITH_ERROR_RESET(locale_is_right_to_left)
{
char *locale;
size_t locale_len;