forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/php: Backport patch from upstream for ICU 70 changes
Already fixed in 7.4.26, 8.0.13 and 8.1.0_rc6 Signed-off-by: Brian Evans <[email protected]>
- Loading branch information
Brian Evans
committed
Nov 24, 2021
1 parent
e77e29e
commit 91dcbea
Showing
6 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c | ||
index 1c4ba327bd83..1bdfb27b7e2e 100644 | ||
--- a/ext/intl/locale/locale_methods.c | ||
+++ b/ext/intl/locale/locale_methods.c | ||
@@ -1326,7 +1326,7 @@ PHP_FUNCTION(locale_filter_matches) | ||
if( token && (token==cur_lang_tag) ){ | ||
/* check if the char. after match is SEPARATOR */ | ||
chrcheck = token + (strlen(cur_loc_range)); | ||
- if( isIDSeparator(*chrcheck) || isEndOfTag(*chrcheck) ){ | ||
+ if( isIDSeparator(*chrcheck) || isKeywordSeparator(*chrcheck) || isEndOfTag(*chrcheck) ){ | ||
efree( cur_lang_tag ); | ||
efree( cur_loc_range ); | ||
if( can_lang_tag){ | ||
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
index bf44678efc06..143c181590e9 100644 | ||
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
@@ -75,7 +75,11 @@ CodePointBreakIterator::~CodePointBreakIterator() | ||
clearCurrentCharIter(); | ||
} | ||
|
||
+#if U_ICU_VERSION_MAJOR_NUM >= 70 | ||
+bool CodePointBreakIterator::operator==(const BreakIterator& that) const | ||
+#else | ||
UBool CodePointBreakIterator::operator==(const BreakIterator& that) const | ||
+#endif | ||
{ | ||
if (typeid(*this) != typeid(that)) { | ||
return FALSE; | ||
diff --git a/ext/intl/breakiterator/codepointiterator_internal.h b/ext/intl/breakiterator/codepointiterator_internal.h | ||
index 7ecf12deb5ae..0baf607782d0 100644 | ||
--- a/ext/intl/breakiterator/codepointiterator_internal.h | ||
+++ b/ext/intl/breakiterator/codepointiterator_internal.h | ||
@@ -39,7 +39,11 @@ namespace PHP { | ||
|
||
virtual ~CodePointBreakIterator(); | ||
|
||
+#if U_ICU_VERSION_MAJOR_NUM >= 70 | ||
+ virtual bool operator==(const BreakIterator& that) const; | ||
+#else | ||
virtual UBool operator==(const BreakIterator& that) const; | ||
+#endif | ||
|
||
virtual CodePointBreakIterator* clone(void) const; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters