1 --- php-5.5.38.orig/ext/intl/breakiterator/breakiterator_class.cpp 2016-07-20 10:41:48.000000000 +0200
2 +++ php-5.5.38/ext/intl/breakiterator/breakiterator_class.cpp 2019-04-18 09:26:37.409910360 +0200
6 using PHP::CodePointBreakIterator;
7 +using icu::RuleBasedBreakIterator;
9 /* {{{ Global variables */
10 zend_class_entry *BreakIterator_ce_ptr;
11 --- php-5.5.38.orig/ext/intl/breakiterator/breakiterator_class.h 2016-07-20 10:41:48.000000000 +0200
12 +++ php-5.5.38/ext/intl/breakiterator/breakiterator_class.h 2019-04-18 09:27:25.925787455 +0200
15 #ifndef USE_BREAKITERATOR_POINTER
16 typedef void BreakIterator;
18 +using icu::BreakIterator;
22 --- php-5.5.38.orig/ext/intl/breakiterator/breakiterator_methods.cpp 2016-07-20 10:41:48.000000000 +0200
23 +++ php-5.5.38/ext/intl/breakiterator/breakiterator_methods.cpp 2019-04-18 09:30:32.998928523 +0200
27 using PHP::CodePointBreakIterator;
28 +using icu::BreakIterator;
31 U_CFUNC PHP_METHOD(BreakIterator, __construct)
33 --- php-5.5.38.orig/ext/intl/breakiterator/codepointiterator_internal.cpp 2016-07-20 10:41:48.000000000 +0200
34 +++ php-5.5.38/ext/intl/breakiterator/codepointiterator_internal.cpp 2019-04-18 09:24:40.240427586 +0200
36 #define U_ALIGNMENT_OFFSET_UP(ptr) (sizeof(UAlignedMemory) - U_ALIGNMENT_OFFSET(ptr))
39 +using icu::UCharCharacterIterator;
41 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CodePointBreakIterator);
43 --- php-5.5.38.orig/ext/intl/breakiterator/codepointiterator_internal.h 2016-07-20 10:41:48.000000000 +0200
44 +++ php-5.5.38/ext/intl/breakiterator/codepointiterator_internal.h 2019-04-18 09:25:57.127796222 +0200
46 #define CODEPOINTITERATOR_INTERNAL_H
48 #include <unicode/brkiter.h>
49 +#include <unicode/unistr.h>
51 -using U_ICU_NAMESPACE::BreakIterator;
52 +using icu::BreakIterator;
53 +using icu::CharacterIterator;
54 +using icu::UnicodeString;
58 --- php-5.5.38.orig/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp 2016-07-20 10:41:48.000000000 +0200
59 +++ php-5.5.38/ext/intl/breakiterator/rulebasedbreakiterator_methods.cpp 2019-04-18 09:30:55.920130219 +0200
62 #include "../ext/intl_convertcpp.h"
64 +using icu::RuleBasedBreakIterator;
67 static inline RuleBasedBreakIterator *fetch_rbbi(BreakIterator_object *bio) {
68 return (RuleBasedBreakIterator*)bio->biter;
70 --- php-5.5.38.orig/ext/intl/calendar/calendar_class.cpp 2016-07-20 10:41:48.000000000 +0200
71 +++ php-5.5.38/ext/intl/calendar/calendar_class.cpp 2019-04-18 09:21:08.825998526 +0200
76 +using icu::GregorianCalendar;
79 /* {{{ Global variables */
80 zend_class_entry *Calendar_ce_ptr;
81 zend_class_entry *GregorianCalendar_ce_ptr;
82 --- php-5.5.38.orig/ext/intl/calendar/calendar_class.h 2016-07-20 10:41:48.000000000 +0200
83 +++ php-5.5.38/ext/intl/calendar/calendar_class.h 2019-04-18 08:51:22.553104240 +0200
86 #ifndef USE_CALENDAR_POINTER
87 typedef void Calendar;
93 --- php-5.5.38.orig/ext/intl/calendar/calendar_methods.cpp 2016-07-20 10:41:48.000000000 +0200
94 +++ php-5.5.38/ext/intl/calendar/calendar_methods.cpp 2019-04-18 09:21:37.634177141 +0200
97 #include "../common/common_enum.h"
101 U_CFUNC PHP_METHOD(IntlCalendar, __construct)
103 zend_throw_exception( NULL,
104 --- php-5.5.38.orig/ext/intl/calendar/gregoriancalendar_methods.cpp 2016-07-20 10:41:48.000000000 +0200
105 +++ php-5.5.38/ext/intl/calendar/gregoriancalendar_methods.cpp 2019-04-18 09:23:00.341851246 +0200
107 #include <ext/date/php_date.h>
110 +using icu::GregorianCalendar;
112 +using icu::UnicodeString;
113 +using icu::StringPiece;
115 static inline GregorianCalendar *fetch_greg(Calendar_object *co) {
116 return (GregorianCalendar*)co->ucal;
118 --- php-5.5.38.orig/ext/intl/common/common_date.cpp 2016-07-20 10:41:48.000000000 +0200
119 +++ php-5.5.38/ext/intl/common/common_date.cpp 2019-04-18 08:53:40.357013115 +0200
121 #include "../ext/intl_cppshims.h"
123 #include <unicode/calendar.h>
124 +using icu::TimeZone;
125 +using icu::UnicodeString;
128 #include "../php_intl.h"
129 --- php-5.5.38.orig/ext/intl/common/common_date.h 2016-07-20 10:41:48.000000000 +0200
130 +++ php-5.5.38/ext/intl/common/common_date.h 2019-04-18 09:04:53.802375635 +0200
134 #include <unicode/timezone.h>
135 +using icu::TimeZone;
137 U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func TSRMLS_DC);
138 U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
139 --- php-5.5.38.orig/ext/intl/common/common_enum.h 2016-07-20 10:41:48.000000000 +0200
140 +++ php-5.5.38/ext/intl/common/common_enum.h 2019-04-18 08:50:49.214683321 +0200
142 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
145 +using icu::StringEnumeration;
146 U_CFUNC void IntlIterator_from_StringEnumeration(StringEnumeration *se, zval *object);
149 --- php-5.5.38.orig/ext/intl/dateformat/dateformat_format_object.cpp 2016-07-20 10:41:48.000000000 +0200
150 +++ php-5.5.38/ext/intl/dateformat/dateformat_format_object.cpp 2019-04-18 08:55:34.509673920 +0200
152 #include "../common/common_date.h"
156 +using icu::DateFormat;
157 +using icu::GregorianCalendar;
158 +using icu::StringPiece;
159 +using icu::SimpleDateFormat;
161 static const DateFormat::EStyle valid_styles[] = {
164 --- php-5.5.38.orig/ext/intl/dateformat/dateformat_helpers.h 2016-07-20 10:41:48.000000000 +0200
165 +++ php-5.5.38/ext/intl/dateformat/dateformat_helpers.h 2019-04-18 09:07:05.049267391 +0200
169 #include <unicode/calendar.h>
171 +#include <unicode/datefmt.h>
174 #include "../php_intl.h"
178 +using icu::Calendar;
180 +using icu::DateFormat;
182 int datefmt_process_calendar_arg(zval* calendar_zv,
183 Locale const& locale,
184 const char *func_name,
185 --- php-5.5.38.orig/ext/intl/intl_convertcpp.h 2016-07-20 10:41:48.000000000 +0200
186 +++ php-5.5.38/ext/intl/intl_convertcpp.h 2019-04-18 08:49:50.358252987 +0200
189 #include <unicode/unistr.h>
190 #include <zend_types.h>
191 +using icu::UnicodeString;
193 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
195 --- php-5.5.38.orig/ext/intl/msgformat/msgformat_helpers.cpp 2016-07-20 10:41:48.000000000 +0200
196 +++ php-5.5.38/ext/intl/msgformat/msgformat_helpers.cpp 2019-04-18 09:00:43.482564710 +0200
198 #include <unicode/timezone.h>
199 #include <unicode/datefmt.h>
200 #include <unicode/calendar.h>
201 +#include <unicode/strenum.h>
209 +using icu::Formattable;
211 +using icu::DateFormat;
212 +using icu::MessageFormat;
213 +#ifdef HAS_MESSAGE_PATTERN
214 +using icu::MessagePattern;
216 +using icu::MessageFormatAdapter;
217 +using icu::FieldPosition;
219 U_CFUNC int32_t umsg_format_arg_count(UMessageFormat *fmt)
221 int32_t fmt_count = 0;
222 --- php-5.5.38.orig/ext/intl/timezone/timezone_class.cpp 2016-07-20 10:41:48.000000000 +0200
223 +++ php-5.5.38/ext/intl/timezone/timezone_class.cpp 2019-04-18 09:01:40.738904566 +0200
225 #include <ext/date/php_date.h>
228 +using icu::Calendar;
230 /* {{{ Global variables */
232 zend_class_entry *TimeZone_ce_ptr = NULL;
233 --- php-5.5.38.orig/ext/intl/timezone/timezone_class.h 2016-07-20 10:41:48.000000000 +0200
234 +++ php-5.5.38/ext/intl/timezone/timezone_class.h 2019-04-18 08:58:02.620784547 +0200
237 #ifndef USE_TIMEZONE_POINTER
238 typedef void TimeZone;
240 +using icu::TimeZone;
244 --- php-5.5.38.orig/ext/intl/timezone/timezone_methods.cpp 2016-07-20 10:41:48.000000000 +0200
245 +++ php-5.5.38/ext/intl/timezone/timezone_methods.cpp 2019-04-18 09:20:17.116617981 +0200
247 #include <unicode/locid.h>
248 #include <unicode/timezone.h>
249 #include <unicode/ustring.h>
250 +#include <unicode/calendar.h>
251 #include "intl_convertcpp.h"
253 #include "../common/common_date.h"
256 #include "common/common_enum.h"
259 +using icu::Calendar;
261 U_CFUNC PHP_METHOD(IntlTimeZone, __construct)
263 zend_throw_exception( NULL,
265 --- php-7.0.33/ext/intl/dateformat/dateformat_helpers.cpp~ 2018-12-04 18:22:53.000000000 +0100
266 +++ php-7.0.33/ext/intl/dateformat/dateformat_helpers.cpp 2019-10-19 21:29:32.416045611 +0200
267 @@ -28,6 +28,8 @@ extern "C" {
268 #include "../calendar/calendar_class.h"
271 +using icu::GregorianCalendar;
273 int datefmt_process_calendar_arg(zval* calendar_zv,
274 Locale const& locale,
275 const char *func_name,