Commit cf18c77d6cc for php.net
commit cf18c77d6cce1eddaf6d1640cc9818277ab28087
Author: Weilin Du <weilindu@php.net>
Date: Sat Jun 20 13:49:37 2026 +0800
ext/intl: Fix Locale::lookup() test expectations (#22306)
PHP 8.5 prefixes intl error messages with the calling function name. Update
the regression test expectations to match the branch behavior for
Locale::lookup() and locale_lookup().
diff --git a/ext/intl/tests/locale_lookup_invalid_language_tag.phpt b/ext/intl/tests/locale_lookup_invalid_language_tag.phpt
index ea4e3ec1cd0..3ba48f61334 100644
--- a/ext/intl/tests/locale_lookup_invalid_language_tag.phpt
+++ b/ext/intl/tests/locale_lookup_invalid_language_tag.phpt
@@ -28,8 +28,8 @@
?>
--EXPECT--
NULL
-string(57) "unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
+string(75) "Locale::lookup(): unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
NULL
-string(57) "unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
-unable to canonicalize lang_tag
-unable to canonicalize lang_tag
+string(74) "locale_lookup(): unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
+Locale::lookup(): unable to canonicalize lang_tag
+locale_lookup(): unable to canonicalize lang_tag