1 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/breakiterator_class.cpp php-5.6.40/ext/intl/breakiterator/breakiterator_class.cpp
2 --- php-5.6.40.org/ext/intl/breakiterator/breakiterator_class.cpp 2019-01-09 10:54:13.000000000 +0100
3 +++ php-5.6.40/ext/intl/breakiterator/breakiterator_class.cpp 2021-08-23 23:20:40.309048531 +0200
4 @@ -38,6 +38,7 @@ extern "C" {
7 using PHP::CodePointBreakIterator;
8 +using icu::RuleBasedBreakIterator;
10 /* {{{ Global variables */
11 zend_class_entry *BreakIterator_ce_ptr;
12 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/breakiterator_class.h php-5.6.40/ext/intl/breakiterator/breakiterator_class.h
13 --- php-5.6.40.org/ext/intl/breakiterator/breakiterator_class.h 2019-01-09 10:54:13.000000000 +0100
14 +++ php-5.6.40/ext/intl/breakiterator/breakiterator_class.h 2021-08-23 23:20:40.309048531 +0200
17 #ifndef USE_BREAKITERATOR_POINTER
18 typedef void BreakIterator;
20 +using icu::BreakIterator;
24 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/breakiterator_methods.cpp php-5.6.40/ext/intl/breakiterator/breakiterator_methods.cpp
25 --- php-5.6.40.org/ext/intl/breakiterator/breakiterator_methods.cpp 2019-01-09 10:54:13.000000000 +0100
26 +++ php-5.6.40/ext/intl/breakiterator/breakiterator_methods.cpp 2021-08-23 23:20:40.309048531 +0200
27 @@ -32,6 +32,8 @@ extern "C" {
30 using PHP::CodePointBreakIterator;
31 +using icu::BreakIterator;
34 U_CFUNC PHP_METHOD(BreakIterator, __construct)
36 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/codepointiterator_internal.cpp php-5.6.40/ext/intl/breakiterator/codepointiterator_internal.cpp
37 --- php-5.6.40.org/ext/intl/breakiterator/codepointiterator_internal.cpp 2019-01-09 10:54:13.000000000 +0100
38 +++ php-5.6.40/ext/intl/breakiterator/codepointiterator_internal.cpp 2021-08-23 23:20:40.309048531 +0200
39 @@ -30,6 +30,7 @@ typedef union {
40 #define U_ALIGNMENT_OFFSET_UP(ptr) (sizeof(UAlignedMemory) - U_ALIGNMENT_OFFSET(ptr))
43 +using icu::UCharCharacterIterator;
45 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CodePointBreakIterator);
47 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/codepointiterator_internal.h php-5.6.40/ext/intl/breakiterator/codepointiterator_internal.h
48 --- php-5.6.40.org/ext/intl/breakiterator/codepointiterator_internal.h 2019-01-09 10:54:13.000000000 +0100
49 +++ php-5.6.40/ext/intl/breakiterator/codepointiterator_internal.h 2021-08-23 23:20:40.312381861 +0200
51 #define CODEPOINTITERATOR_INTERNAL_H
53 #include <unicode/brkiter.h>
54 +#include <unicode/unistr.h>
56 -using U_ICU_NAMESPACE::BreakIterator;
57 +using icu::BreakIterator;
58 +using icu::CharacterIterator;
59 +using icu::UnicodeString;
63 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp php-5.6.40/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp
64 --- php-5.6.40.org/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp 2019-01-09 10:54:13.000000000 +0100
65 +++ php-5.6.40/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp 2021-08-23 23:20:40.312381861 +0200
66 @@ -25,6 +25,9 @@ extern "C" {
68 #include "../intl_convertcpp.h"
70 +using icu::RuleBasedBreakIterator;
73 static inline RuleBasedBreakIterator *fetch_rbbi(BreakIterator_object *bio) {
74 return (RuleBasedBreakIterator*)bio->biter;
76 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/calendar/calendar_class.cpp php-5.6.40/ext/intl/calendar/calendar_class.cpp
77 --- php-5.6.40.org/ext/intl/calendar/calendar_class.cpp 2019-01-09 10:54:13.000000000 +0100
78 +++ php-5.6.40/ext/intl/calendar/calendar_class.cpp 2021-08-23 23:20:40.312381861 +0200
79 @@ -34,6 +34,9 @@ extern "C" {
83 +using icu::GregorianCalendar;
86 /* {{{ Global variables */
87 zend_class_entry *Calendar_ce_ptr;
88 zend_class_entry *GregorianCalendar_ce_ptr;
89 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/calendar/calendar_class.h php-5.6.40/ext/intl/calendar/calendar_class.h
90 --- php-5.6.40.org/ext/intl/calendar/calendar_class.h 2019-01-09 10:54:13.000000000 +0100
91 +++ php-5.6.40/ext/intl/calendar/calendar_class.h 2021-08-23 23:20:40.312381861 +0200
94 #ifndef USE_CALENDAR_POINTER
95 typedef void Calendar;
101 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/calendar/calendar_methods.cpp php-5.6.40/ext/intl/calendar/calendar_methods.cpp
102 --- php-5.6.40.org/ext/intl/calendar/calendar_methods.cpp 2019-01-09 10:54:13.000000000 +0100
103 +++ php-5.6.40/ext/intl/calendar/calendar_methods.cpp 2021-08-23 23:20:40.312381861 +0200
104 @@ -40,6 +40,8 @@ extern "C" {
106 #include "../common/common_enum.h"
110 U_CFUNC PHP_METHOD(IntlCalendar, __construct)
112 zend_throw_exception( NULL,
113 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/calendar/gregoriancalendar_methods.cpp php-5.6.40/ext/intl/calendar/gregoriancalendar_methods.cpp
114 --- php-5.6.40.org/ext/intl/calendar/gregoriancalendar_methods.cpp 2019-01-09 10:54:13.000000000 +0100
115 +++ php-5.6.40/ext/intl/calendar/gregoriancalendar_methods.cpp 2021-08-23 23:20:40.312381861 +0200
116 @@ -32,6 +32,11 @@ extern "C" {
117 #include <ext/date/php_date.h>
120 +using icu::GregorianCalendar;
122 +using icu::UnicodeString;
123 +using icu::StringPiece;
125 static inline GregorianCalendar *fetch_greg(Calendar_object *co) {
126 return (GregorianCalendar*)co->ucal;
128 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/common/common_date.cpp php-5.6.40/ext/intl/common/common_date.cpp
129 --- php-5.6.40.org/ext/intl/common/common_date.cpp 2019-01-09 10:54:13.000000000 +0100
130 +++ php-5.6.40/ext/intl/common/common_date.cpp 2021-08-23 23:20:40.312381861 +0200
132 #include "../intl_cppshims.h"
134 #include <unicode/calendar.h>
135 +using icu::TimeZone;
136 +using icu::UnicodeString;
139 #include "../php_intl.h"
140 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/common/common_date.h php-5.6.40/ext/intl/common/common_date.h
141 --- php-5.6.40.org/ext/intl/common/common_date.h 2019-01-09 10:54:13.000000000 +0100
142 +++ php-5.6.40/ext/intl/common/common_date.h 2021-08-23 23:20:40.312381861 +0200
143 @@ -27,6 +27,7 @@ U_CDECL_END
146 #include <unicode/timezone.h>
147 +using icu::TimeZone;
149 U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func TSRMLS_DC);
150 U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
151 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/common/common_enum.h php-5.6.40/ext/intl/common/common_enum.h
152 --- php-5.6.40.org/ext/intl/common/common_enum.h 2019-01-09 10:54:13.000000000 +0100
153 +++ php-5.6.40/ext/intl/common/common_enum.h 2021-08-23 23:20:40.312381861 +0200
154 @@ -69,6 +69,7 @@ U_CFUNC void zoi_with_current_get_curren
155 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter TSRMLS_DC);
158 +using icu::StringEnumeration;
159 U_CFUNC void IntlIterator_from_StringEnumeration(StringEnumeration *se, zval *object TSRMLS_DC);
162 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/dateformat/dateformat_format_object.cpp php-5.6.40/ext/intl/dateformat/dateformat_format_object.cpp
163 --- php-5.6.40.org/ext/intl/dateformat/dateformat_format_object.cpp 2019-01-09 10:54:13.000000000 +0100
164 +++ php-5.6.40/ext/intl/dateformat/dateformat_format_object.cpp 2021-08-23 23:20:40.312381861 +0200
165 @@ -33,6 +33,12 @@ extern "C" {
166 #include "../common/common_date.h"
170 +using icu::DateFormat;
171 +using icu::GregorianCalendar;
172 +using icu::StringPiece;
173 +using icu::SimpleDateFormat;
175 static const DateFormat::EStyle valid_styles[] = {
178 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/dateformat/dateformat_helpers.cpp php-5.6.40/ext/intl/dateformat/dateformat_helpers.cpp
179 --- php-5.6.40.org/ext/intl/dateformat/dateformat_helpers.cpp 2019-01-09 10:54:13.000000000 +0100
180 +++ php-5.6.40/ext/intl/dateformat/dateformat_helpers.cpp 2021-08-23 23:20:40.312381861 +0200
181 @@ -28,6 +28,8 @@ extern "C" {
182 #include "../calendar/calendar_class.h"
185 +using icu::GregorianCalendar;
187 int datefmt_process_calendar_arg(zval* calendar_zv,
188 Locale const& locale,
189 const char *func_name,
190 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/dateformat/dateformat_helpers.h php-5.6.40/ext/intl/dateformat/dateformat_helpers.h
191 --- php-5.6.40.org/ext/intl/dateformat/dateformat_helpers.h 2019-01-09 10:54:13.000000000 +0100
192 +++ php-5.6.40/ext/intl/dateformat/dateformat_helpers.h 2021-08-23 23:20:40.312381861 +0200
195 #include <unicode/calendar.h>
197 +#include <unicode/datefmt.h>
200 #include "../php_intl.h"
204 +using icu::Calendar;
206 +using icu::DateFormat;
208 int datefmt_process_calendar_arg(zval* calendar_zv,
209 Locale const& locale,
210 const char *func_name,
211 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/intl_convertcpp.h php-5.6.40/ext/intl/intl_convertcpp.h
212 --- php-5.6.40.org/ext/intl/intl_convertcpp.h 2019-01-09 10:54:13.000000000 +0100
213 +++ php-5.6.40/ext/intl/intl_convertcpp.h 2021-08-23 23:20:40.312381861 +0200
217 #include <unicode/unistr.h>
218 +using icu::UnicodeString;
220 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
222 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/msgformat/msgformat_helpers.cpp php-5.6.40/ext/intl/msgformat/msgformat_helpers.cpp
223 --- php-5.6.40.org/ext/intl/msgformat/msgformat_helpers.cpp 2019-01-09 10:54:13.000000000 +0100
224 +++ php-5.6.40/ext/intl/msgformat/msgformat_helpers.cpp 2021-08-23 23:20:40.312381861 +0200
226 #include <unicode/timezone.h>
227 #include <unicode/datefmt.h>
228 #include <unicode/calendar.h>
229 +#include <unicode/strenum.h>
233 @@ -76,6 +77,16 @@ MessageFormatAdapter::getMessagePattern(
237 +using icu::Formattable;
239 +using icu::DateFormat;
240 +using icu::MessageFormat;
241 +#ifdef HAS_MESSAGE_PATTERN
242 +using icu::MessagePattern;
244 +using icu::MessageFormatAdapter;
245 +using icu::FieldPosition;
247 U_CFUNC int32_t umsg_format_arg_count(UMessageFormat *fmt)
249 int32_t fmt_count = 0;
250 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/timezone/timezone_class.cpp php-5.6.40/ext/intl/timezone/timezone_class.cpp
251 --- php-5.6.40.org/ext/intl/timezone/timezone_class.cpp 2019-01-09 10:54:13.000000000 +0100
252 +++ php-5.6.40/ext/intl/timezone/timezone_class.cpp 2021-08-23 23:20:40.312381861 +0200
253 @@ -37,6 +37,8 @@ extern "C" {
254 #include <ext/date/php_date.h>
257 +using icu::Calendar;
259 /* {{{ Global variables */
261 zend_class_entry *TimeZone_ce_ptr = NULL;
262 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/timezone/timezone_class.h php-5.6.40/ext/intl/timezone/timezone_class.h
263 --- php-5.6.40.org/ext/intl/timezone/timezone_class.h 2019-01-09 10:54:13.000000000 +0100
264 +++ php-5.6.40/ext/intl/timezone/timezone_class.h 2021-08-23 23:20:40.312381861 +0200
267 #ifndef USE_TIMEZONE_POINTER
268 typedef void TimeZone;
270 +using icu::TimeZone;
274 diff -urNp -x '*.orig' php-5.6.40.org/ext/intl/timezone/timezone_methods.cpp php-5.6.40/ext/intl/timezone/timezone_methods.cpp
275 --- php-5.6.40.org/ext/intl/timezone/timezone_methods.cpp 2019-01-09 10:54:13.000000000 +0100
276 +++ php-5.6.40/ext/intl/timezone/timezone_methods.cpp 2021-08-23 23:20:40.312381861 +0200
278 #include <unicode/locid.h>
279 #include <unicode/timezone.h>
280 #include <unicode/ustring.h>
281 +#include <unicode/calendar.h>
282 #include "intl_convertcpp.h"
284 #include "../common/common_date.h"
285 @@ -37,6 +38,9 @@ extern "C" {
287 #include "common/common_enum.h"
290 +using icu::Calendar;
292 U_CFUNC PHP_METHOD(IntlTimeZone, __construct)
294 zend_throw_exception( NULL,