Skip to content

Commit cf18c77

Browse files
committed
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().
1 parent 7a3dd1b commit cf18c77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ext/intl/tests/locale_lookup_invalid_language_tag.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ try {
2828
?>
2929
--EXPECT--
3030
NULL
31-
string(57) "unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
31+
string(75) "Locale::lookup(): unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
3232
NULL
33-
string(57) "unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
34-
unable to canonicalize lang_tag
35-
unable to canonicalize lang_tag
33+
string(74) "locale_lookup(): unable to canonicalize lang_tag: U_ILLEGAL_ARGUMENT_ERROR"
34+
Locale::lookup(): unable to canonicalize lang_tag
35+
locale_lookup(): unable to canonicalize lang_tag

0 commit comments

Comments
 (0)