1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: c014b88c9b6aa145ea20cc1f3fd719fe9f3d6966 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_IntlCalendar_createInstance, 0, 0, IntlCalendar, 1)
8 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timezone, "null")
9 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_equals, 0, 1, _IS_BOOL, 0)
13 	ZEND_ARG_OBJ_INFO(0, other, IntlCalendar, 0)
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_fieldDifference, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
17 	ZEND_ARG_TYPE_INFO(0, timestamp, IS_DOUBLE, 0)
18 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_add, 0, 2, _IS_BOOL, 0)
22 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
23 	ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
24 ZEND_END_ARG_INFO()
25 
26 #define arginfo_class_IntlCalendar_after arginfo_class_IntlCalendar_equals
27 
28 #define arginfo_class_IntlCalendar_before arginfo_class_IntlCalendar_equals
29 
30 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_clear, 0, 0, IS_TRUE, 0)
31 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, field, IS_LONG, 1, "null")
32 ZEND_END_ARG_INFO()
33 
34 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_IntlCalendar_fromDateTime, 0, 1, IntlCalendar, 1)
35 	ZEND_ARG_OBJ_TYPE_MASK(0, datetime, DateTime, MAY_BE_STRING, NULL)
36 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")
37 ZEND_END_ARG_INFO()
38 
39 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_get, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
40 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
41 ZEND_END_ARG_INFO()
42 
43 #define arginfo_class_IntlCalendar_getActualMaximum arginfo_class_IntlCalendar_get
44 
45 #define arginfo_class_IntlCalendar_getActualMinimum arginfo_class_IntlCalendar_get
46 
47 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_getAvailableLocales, 0, 0, IS_ARRAY, 0)
48 ZEND_END_ARG_INFO()
49 
50 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getDayOfWeekType, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
51 	ZEND_ARG_TYPE_INFO(0, dayOfWeek, IS_LONG, 0)
52 ZEND_END_ARG_INFO()
53 
54 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getErrorCode, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
55 ZEND_END_ARG_INFO()
56 
57 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getErrorMessage, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
58 ZEND_END_ARG_INFO()
59 
60 #define arginfo_class_IntlCalendar_getFirstDayOfWeek arginfo_class_IntlCalendar_getErrorCode
61 
62 #define arginfo_class_IntlCalendar_getGreatestMinimum arginfo_class_IntlCalendar_get
63 
64 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_IntlCalendar_getKeywordValuesForLocale, 0, 3, IntlIterator, MAY_BE_FALSE)
65 	ZEND_ARG_TYPE_INFO(0, keyword, IS_STRING, 0)
66 	ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
67 	ZEND_ARG_TYPE_INFO(0, onlyCommon, _IS_BOOL, 0)
68 ZEND_END_ARG_INFO()
69 
70 #define arginfo_class_IntlCalendar_getLeastMaximum arginfo_class_IntlCalendar_get
71 
72 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getLocale, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
73 	ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
74 ZEND_END_ARG_INFO()
75 
76 #define arginfo_class_IntlCalendar_getMaximum arginfo_class_IntlCalendar_get
77 
78 #define arginfo_class_IntlCalendar_getMinimalDaysInFirstWeek arginfo_class_IntlCalendar_getErrorCode
79 
80 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setMinimalDaysInFirstWeek, 0, 1, IS_TRUE, 0)
81 	ZEND_ARG_TYPE_INFO(0, days, IS_LONG, 0)
82 ZEND_END_ARG_INFO()
83 
84 #define arginfo_class_IntlCalendar_getMinimum arginfo_class_IntlCalendar_get
85 
86 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_getNow, 0, 0, IS_DOUBLE, 0)
87 ZEND_END_ARG_INFO()
88 
89 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_getRepeatedWallTimeOption, 0, 0, IS_LONG, 0)
90 ZEND_END_ARG_INFO()
91 
92 #define arginfo_class_IntlCalendar_getSkippedWallTimeOption arginfo_class_IntlCalendar_getRepeatedWallTimeOption
93 
94 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_IntlCalendar_getTime, 0, 0, MAY_BE_DOUBLE|MAY_BE_FALSE)
95 ZEND_END_ARG_INFO()
96 
97 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_IntlCalendar_getTimeZone, 0, 0, IntlTimeZone, MAY_BE_FALSE)
98 ZEND_END_ARG_INFO()
99 
100 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_getType, 0, 0, IS_STRING, 0)
101 ZEND_END_ARG_INFO()
102 
103 #define arginfo_class_IntlCalendar_getWeekendTransition arginfo_class_IntlCalendar_getDayOfWeekType
104 
105 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_inDaylightTime, 0, 0, _IS_BOOL, 0)
106 ZEND_END_ARG_INFO()
107 
108 #define arginfo_class_IntlCalendar_isEquivalentTo arginfo_class_IntlCalendar_equals
109 
110 #define arginfo_class_IntlCalendar_isLenient arginfo_class_IntlCalendar_inDaylightTime
111 
112 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_isWeekend, 0, 0, _IS_BOOL, 0)
113 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timestamp, IS_DOUBLE, 1, "null")
114 ZEND_END_ARG_INFO()
115 
116 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_roll, 0, 2, _IS_BOOL, 0)
117 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
118 	ZEND_ARG_INFO(0, value)
119 ZEND_END_ARG_INFO()
120 
121 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_isSet, 0, 1, _IS_BOOL, 0)
122 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
123 ZEND_END_ARG_INFO()
124 
125 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_set, 0, 2, IS_TRUE, 0)
126 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
127 	ZEND_ARG_TYPE_INFO(0, month, IS_LONG, 0)
128 	ZEND_ARG_TYPE_INFO(0, dayOfMonth, IS_LONG, 0)
129 	ZEND_ARG_TYPE_INFO(0, hour, IS_LONG, 0)
130 	ZEND_ARG_TYPE_INFO(0, minute, IS_LONG, 0)
131 	ZEND_ARG_TYPE_INFO(0, second, IS_LONG, 0)
132 ZEND_END_ARG_INFO()
133 
134 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setDate, 0, 3, IS_VOID, 0)
135 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
136 	ZEND_ARG_TYPE_INFO(0, month, IS_LONG, 0)
137 	ZEND_ARG_TYPE_INFO(0, dayOfMonth, IS_LONG, 0)
138 ZEND_END_ARG_INFO()
139 
140 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setDateTime, 0, 5, IS_VOID, 0)
141 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
142 	ZEND_ARG_TYPE_INFO(0, month, IS_LONG, 0)
143 	ZEND_ARG_TYPE_INFO(0, dayOfMonth, IS_LONG, 0)
144 	ZEND_ARG_TYPE_INFO(0, hour, IS_LONG, 0)
145 	ZEND_ARG_TYPE_INFO(0, minute, IS_LONG, 0)
146 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, second, IS_LONG, 1, "null")
147 ZEND_END_ARG_INFO()
148 
149 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setFirstDayOfWeek, 0, 1, IS_TRUE, 0)
150 	ZEND_ARG_TYPE_INFO(0, dayOfWeek, IS_LONG, 0)
151 ZEND_END_ARG_INFO()
152 
153 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setLenient, 0, 1, IS_TRUE, 0)
154 	ZEND_ARG_TYPE_INFO(0, lenient, _IS_BOOL, 0)
155 ZEND_END_ARG_INFO()
156 
157 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setRepeatedWallTimeOption, 0, 1, IS_TRUE, 0)
158 	ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
159 ZEND_END_ARG_INFO()
160 
161 #define arginfo_class_IntlCalendar_setSkippedWallTimeOption arginfo_class_IntlCalendar_setRepeatedWallTimeOption
162 
163 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setTime, 0, 1, _IS_BOOL, 0)
164 	ZEND_ARG_TYPE_INFO(0, timestamp, IS_DOUBLE, 0)
165 ZEND_END_ARG_INFO()
166 
167 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_setTimeZone, 0, 1, _IS_BOOL, 0)
168 	ZEND_ARG_INFO(0, timezone)
169 ZEND_END_ARG_INFO()
170 
171 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_IntlCalendar_toDateTime, 0, 0, DateTime, MAY_BE_FALSE)
172 ZEND_END_ARG_INFO()
173 
174 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_IntlGregorianCalendar_createFromDate, 0, 3, IS_STATIC, 0)
175 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
176 	ZEND_ARG_TYPE_INFO(0, month, IS_LONG, 0)
177 	ZEND_ARG_TYPE_INFO(0, dayOfMonth, IS_LONG, 0)
178 ZEND_END_ARG_INFO()
179 
180 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_IntlGregorianCalendar_createFromDateTime, 0, 5, IS_STATIC, 0)
181 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
182 	ZEND_ARG_TYPE_INFO(0, month, IS_LONG, 0)
183 	ZEND_ARG_TYPE_INFO(0, dayOfMonth, IS_LONG, 0)
184 	ZEND_ARG_TYPE_INFO(0, hour, IS_LONG, 0)
185 	ZEND_ARG_TYPE_INFO(0, minute, IS_LONG, 0)
186 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, second, IS_LONG, 1, "null")
187 ZEND_END_ARG_INFO()
188 
189 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlGregorianCalendar___construct, 0, 0, 0)
190 	ZEND_ARG_INFO(0, timezoneOrYear)
191 	ZEND_ARG_INFO(0, localeOrMonth)
192 	ZEND_ARG_INFO(0, day)
193 	ZEND_ARG_INFO(0, hour)
194 	ZEND_ARG_INFO(0, minute)
195 	ZEND_ARG_INFO(0, second)
196 ZEND_END_ARG_INFO()
197 
198 #define arginfo_class_IntlGregorianCalendar_setGregorianChange arginfo_class_IntlCalendar_setTime
199 
200 #define arginfo_class_IntlGregorianCalendar_getGregorianChange arginfo_class_IntlCalendar_getNow
201 
202 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlGregorianCalendar_isLeapYear, 0, 1, _IS_BOOL, 0)
203 	ZEND_ARG_TYPE_INFO(0, year, IS_LONG, 0)
204 ZEND_END_ARG_INFO()
205 
206 ZEND_METHOD(IntlCalendar, __construct);
207 ZEND_FUNCTION(intlcal_create_instance);
208 ZEND_FUNCTION(intlcal_equals);
209 ZEND_FUNCTION(intlcal_field_difference);
210 ZEND_FUNCTION(intlcal_add);
211 ZEND_FUNCTION(intlcal_after);
212 ZEND_FUNCTION(intlcal_before);
213 ZEND_FUNCTION(intlcal_clear);
214 ZEND_FUNCTION(intlcal_from_date_time);
215 ZEND_FUNCTION(intlcal_get);
216 ZEND_FUNCTION(intlcal_get_actual_maximum);
217 ZEND_FUNCTION(intlcal_get_actual_minimum);
218 ZEND_FUNCTION(intlcal_get_available_locales);
219 ZEND_FUNCTION(intlcal_get_day_of_week_type);
220 ZEND_FUNCTION(intlcal_get_error_code);
221 ZEND_FUNCTION(intlcal_get_error_message);
222 ZEND_FUNCTION(intlcal_get_first_day_of_week);
223 ZEND_FUNCTION(intlcal_get_greatest_minimum);
224 ZEND_FUNCTION(intlcal_get_keyword_values_for_locale);
225 ZEND_FUNCTION(intlcal_get_least_maximum);
226 ZEND_FUNCTION(intlcal_get_locale);
227 ZEND_FUNCTION(intlcal_get_maximum);
228 ZEND_FUNCTION(intlcal_get_minimal_days_in_first_week);
229 ZEND_FUNCTION(intlcal_set_minimal_days_in_first_week);
230 ZEND_FUNCTION(intlcal_get_minimum);
231 ZEND_FUNCTION(intlcal_get_now);
232 ZEND_FUNCTION(intlcal_get_repeated_wall_time_option);
233 ZEND_FUNCTION(intlcal_get_skipped_wall_time_option);
234 ZEND_FUNCTION(intlcal_get_time);
235 ZEND_FUNCTION(intlcal_get_time_zone);
236 ZEND_FUNCTION(intlcal_get_type);
237 ZEND_FUNCTION(intlcal_get_weekend_transition);
238 ZEND_FUNCTION(intlcal_in_daylight_time);
239 ZEND_FUNCTION(intlcal_is_equivalent_to);
240 ZEND_FUNCTION(intlcal_is_lenient);
241 ZEND_FUNCTION(intlcal_is_weekend);
242 ZEND_FUNCTION(intlcal_roll);
243 ZEND_FUNCTION(intlcal_is_set);
244 ZEND_FUNCTION(intlcal_set);
245 ZEND_METHOD(IntlCalendar, setDate);
246 ZEND_METHOD(IntlCalendar, setDateTime);
247 ZEND_FUNCTION(intlcal_set_first_day_of_week);
248 ZEND_FUNCTION(intlcal_set_lenient);
249 ZEND_FUNCTION(intlcal_set_repeated_wall_time_option);
250 ZEND_FUNCTION(intlcal_set_skipped_wall_time_option);
251 ZEND_FUNCTION(intlcal_set_time);
252 ZEND_FUNCTION(intlcal_set_time_zone);
253 ZEND_FUNCTION(intlcal_to_date_time);
254 ZEND_METHOD(IntlGregorianCalendar, createFromDate);
255 ZEND_METHOD(IntlGregorianCalendar, createFromDateTime);
256 ZEND_METHOD(IntlGregorianCalendar, __construct);
257 ZEND_FUNCTION(intlgregcal_set_gregorian_change);
258 ZEND_FUNCTION(intlgregcal_get_gregorian_change);
259 ZEND_FUNCTION(intlgregcal_is_leap_year);
260 
261 static const zend_function_entry class_IntlCalendar_methods[] = {
262 	ZEND_ME(IntlCalendar, __construct, arginfo_class_IntlCalendar___construct, ZEND_ACC_PRIVATE)
263 	ZEND_RAW_FENTRY("createInstance", zif_intlcal_create_instance, arginfo_class_IntlCalendar_createInstance, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
264 	ZEND_RAW_FENTRY("equals", zif_intlcal_equals, arginfo_class_IntlCalendar_equals, ZEND_ACC_PUBLIC, NULL, NULL)
265 	ZEND_RAW_FENTRY("fieldDifference", zif_intlcal_field_difference, arginfo_class_IntlCalendar_fieldDifference, ZEND_ACC_PUBLIC, NULL, NULL)
266 	ZEND_RAW_FENTRY("add", zif_intlcal_add, arginfo_class_IntlCalendar_add, ZEND_ACC_PUBLIC, NULL, NULL)
267 	ZEND_RAW_FENTRY("after", zif_intlcal_after, arginfo_class_IntlCalendar_after, ZEND_ACC_PUBLIC, NULL, NULL)
268 	ZEND_RAW_FENTRY("before", zif_intlcal_before, arginfo_class_IntlCalendar_before, ZEND_ACC_PUBLIC, NULL, NULL)
269 	ZEND_RAW_FENTRY("clear", zif_intlcal_clear, arginfo_class_IntlCalendar_clear, ZEND_ACC_PUBLIC, NULL, NULL)
270 	ZEND_RAW_FENTRY("fromDateTime", zif_intlcal_from_date_time, arginfo_class_IntlCalendar_fromDateTime, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
271 	ZEND_RAW_FENTRY("get", zif_intlcal_get, arginfo_class_IntlCalendar_get, ZEND_ACC_PUBLIC, NULL, NULL)
272 	ZEND_RAW_FENTRY("getActualMaximum", zif_intlcal_get_actual_maximum, arginfo_class_IntlCalendar_getActualMaximum, ZEND_ACC_PUBLIC, NULL, NULL)
273 	ZEND_RAW_FENTRY("getActualMinimum", zif_intlcal_get_actual_minimum, arginfo_class_IntlCalendar_getActualMinimum, ZEND_ACC_PUBLIC, NULL, NULL)
274 	ZEND_RAW_FENTRY("getAvailableLocales", zif_intlcal_get_available_locales, arginfo_class_IntlCalendar_getAvailableLocales, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
275 	ZEND_RAW_FENTRY("getDayOfWeekType", zif_intlcal_get_day_of_week_type, arginfo_class_IntlCalendar_getDayOfWeekType, ZEND_ACC_PUBLIC, NULL, NULL)
276 	ZEND_RAW_FENTRY("getErrorCode", zif_intlcal_get_error_code, arginfo_class_IntlCalendar_getErrorCode, ZEND_ACC_PUBLIC, NULL, NULL)
277 	ZEND_RAW_FENTRY("getErrorMessage", zif_intlcal_get_error_message, arginfo_class_IntlCalendar_getErrorMessage, ZEND_ACC_PUBLIC, NULL, NULL)
278 	ZEND_RAW_FENTRY("getFirstDayOfWeek", zif_intlcal_get_first_day_of_week, arginfo_class_IntlCalendar_getFirstDayOfWeek, ZEND_ACC_PUBLIC, NULL, NULL)
279 	ZEND_RAW_FENTRY("getGreatestMinimum", zif_intlcal_get_greatest_minimum, arginfo_class_IntlCalendar_getGreatestMinimum, ZEND_ACC_PUBLIC, NULL, NULL)
280 	ZEND_RAW_FENTRY("getKeywordValuesForLocale", zif_intlcal_get_keyword_values_for_locale, arginfo_class_IntlCalendar_getKeywordValuesForLocale, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
281 	ZEND_RAW_FENTRY("getLeastMaximum", zif_intlcal_get_least_maximum, arginfo_class_IntlCalendar_getLeastMaximum, ZEND_ACC_PUBLIC, NULL, NULL)
282 	ZEND_RAW_FENTRY("getLocale", zif_intlcal_get_locale, arginfo_class_IntlCalendar_getLocale, ZEND_ACC_PUBLIC, NULL, NULL)
283 	ZEND_RAW_FENTRY("getMaximum", zif_intlcal_get_maximum, arginfo_class_IntlCalendar_getMaximum, ZEND_ACC_PUBLIC, NULL, NULL)
284 	ZEND_RAW_FENTRY("getMinimalDaysInFirstWeek", zif_intlcal_get_minimal_days_in_first_week, arginfo_class_IntlCalendar_getMinimalDaysInFirstWeek, ZEND_ACC_PUBLIC, NULL, NULL)
285 	ZEND_RAW_FENTRY("setMinimalDaysInFirstWeek", zif_intlcal_set_minimal_days_in_first_week, arginfo_class_IntlCalendar_setMinimalDaysInFirstWeek, ZEND_ACC_PUBLIC, NULL, NULL)
286 	ZEND_RAW_FENTRY("getMinimum", zif_intlcal_get_minimum, arginfo_class_IntlCalendar_getMinimum, ZEND_ACC_PUBLIC, NULL, NULL)
287 	ZEND_RAW_FENTRY("getNow", zif_intlcal_get_now, arginfo_class_IntlCalendar_getNow, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL)
288 	ZEND_RAW_FENTRY("getRepeatedWallTimeOption", zif_intlcal_get_repeated_wall_time_option, arginfo_class_IntlCalendar_getRepeatedWallTimeOption, ZEND_ACC_PUBLIC, NULL, NULL)
289 	ZEND_RAW_FENTRY("getSkippedWallTimeOption", zif_intlcal_get_skipped_wall_time_option, arginfo_class_IntlCalendar_getSkippedWallTimeOption, ZEND_ACC_PUBLIC, NULL, NULL)
290 	ZEND_RAW_FENTRY("getTime", zif_intlcal_get_time, arginfo_class_IntlCalendar_getTime, ZEND_ACC_PUBLIC, NULL, NULL)
291 	ZEND_RAW_FENTRY("getTimeZone", zif_intlcal_get_time_zone, arginfo_class_IntlCalendar_getTimeZone, ZEND_ACC_PUBLIC, NULL, NULL)
292 	ZEND_RAW_FENTRY("getType", zif_intlcal_get_type, arginfo_class_IntlCalendar_getType, ZEND_ACC_PUBLIC, NULL, NULL)
293 	ZEND_RAW_FENTRY("getWeekendTransition", zif_intlcal_get_weekend_transition, arginfo_class_IntlCalendar_getWeekendTransition, ZEND_ACC_PUBLIC, NULL, NULL)
294 	ZEND_RAW_FENTRY("inDaylightTime", zif_intlcal_in_daylight_time, arginfo_class_IntlCalendar_inDaylightTime, ZEND_ACC_PUBLIC, NULL, NULL)
295 	ZEND_RAW_FENTRY("isEquivalentTo", zif_intlcal_is_equivalent_to, arginfo_class_IntlCalendar_isEquivalentTo, ZEND_ACC_PUBLIC, NULL, NULL)
296 	ZEND_RAW_FENTRY("isLenient", zif_intlcal_is_lenient, arginfo_class_IntlCalendar_isLenient, ZEND_ACC_PUBLIC, NULL, NULL)
297 	ZEND_RAW_FENTRY("isWeekend", zif_intlcal_is_weekend, arginfo_class_IntlCalendar_isWeekend, ZEND_ACC_PUBLIC, NULL, NULL)
298 	ZEND_RAW_FENTRY("roll", zif_intlcal_roll, arginfo_class_IntlCalendar_roll, ZEND_ACC_PUBLIC, NULL, NULL)
299 	ZEND_RAW_FENTRY("isSet", zif_intlcal_is_set, arginfo_class_IntlCalendar_isSet, ZEND_ACC_PUBLIC, NULL, NULL)
300 	ZEND_RAW_FENTRY("set", zif_intlcal_set, arginfo_class_IntlCalendar_set, ZEND_ACC_PUBLIC, NULL, NULL)
301 	ZEND_ME(IntlCalendar, setDate, arginfo_class_IntlCalendar_setDate, ZEND_ACC_PUBLIC)
302 	ZEND_ME(IntlCalendar, setDateTime, arginfo_class_IntlCalendar_setDateTime, ZEND_ACC_PUBLIC)
303 	ZEND_RAW_FENTRY("setFirstDayOfWeek", zif_intlcal_set_first_day_of_week, arginfo_class_IntlCalendar_setFirstDayOfWeek, ZEND_ACC_PUBLIC, NULL, NULL)
304 	ZEND_RAW_FENTRY("setLenient", zif_intlcal_set_lenient, arginfo_class_IntlCalendar_setLenient, ZEND_ACC_PUBLIC, NULL, NULL)
305 	ZEND_RAW_FENTRY("setRepeatedWallTimeOption", zif_intlcal_set_repeated_wall_time_option, arginfo_class_IntlCalendar_setRepeatedWallTimeOption, ZEND_ACC_PUBLIC, NULL, NULL)
306 	ZEND_RAW_FENTRY("setSkippedWallTimeOption", zif_intlcal_set_skipped_wall_time_option, arginfo_class_IntlCalendar_setSkippedWallTimeOption, ZEND_ACC_PUBLIC, NULL, NULL)
307 	ZEND_RAW_FENTRY("setTime", zif_intlcal_set_time, arginfo_class_IntlCalendar_setTime, ZEND_ACC_PUBLIC, NULL, NULL)
308 	ZEND_RAW_FENTRY("setTimeZone", zif_intlcal_set_time_zone, arginfo_class_IntlCalendar_setTimeZone, ZEND_ACC_PUBLIC, NULL, NULL)
309 	ZEND_RAW_FENTRY("toDateTime", zif_intlcal_to_date_time, arginfo_class_IntlCalendar_toDateTime, ZEND_ACC_PUBLIC, NULL, NULL)
310 	ZEND_FE_END
311 };
312 
313 static const zend_function_entry class_IntlGregorianCalendar_methods[] = {
314 	ZEND_ME(IntlGregorianCalendar, createFromDate, arginfo_class_IntlGregorianCalendar_createFromDate, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
315 	ZEND_ME(IntlGregorianCalendar, createFromDateTime, arginfo_class_IntlGregorianCalendar_createFromDateTime, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
316 	ZEND_ME(IntlGregorianCalendar, __construct, arginfo_class_IntlGregorianCalendar___construct, ZEND_ACC_PUBLIC)
317 	ZEND_RAW_FENTRY("setGregorianChange", zif_intlgregcal_set_gregorian_change, arginfo_class_IntlGregorianCalendar_setGregorianChange, ZEND_ACC_PUBLIC, NULL, NULL)
318 	ZEND_RAW_FENTRY("getGregorianChange", zif_intlgregcal_get_gregorian_change, arginfo_class_IntlGregorianCalendar_getGregorianChange, ZEND_ACC_PUBLIC, NULL, NULL)
319 	ZEND_RAW_FENTRY("isLeapYear", zif_intlgregcal_is_leap_year, arginfo_class_IntlGregorianCalendar_isLeapYear, ZEND_ACC_PUBLIC, NULL, NULL)
320 	ZEND_FE_END
321 };
322 
register_class_IntlCalendar(void)323 static zend_class_entry *register_class_IntlCalendar(void)
324 {
325 	zend_class_entry ce, *class_entry;
326 
327 	INIT_CLASS_ENTRY(ce, "IntlCalendar", class_IntlCalendar_methods);
328 	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_NOT_SERIALIZABLE);
329 
330 	zval const_FIELD_ERA_value;
331 	ZVAL_LONG(&const_FIELD_ERA_value, UCAL_ERA);
332 	zend_string *const_FIELD_ERA_name = zend_string_init_interned("FIELD_ERA", sizeof("FIELD_ERA") - 1, 1);
333 	zend_declare_typed_class_constant(class_entry, const_FIELD_ERA_name, &const_FIELD_ERA_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
334 	zend_string_release(const_FIELD_ERA_name);
335 
336 	zval const_FIELD_YEAR_value;
337 	ZVAL_LONG(&const_FIELD_YEAR_value, UCAL_YEAR);
338 	zend_string *const_FIELD_YEAR_name = zend_string_init_interned("FIELD_YEAR", sizeof("FIELD_YEAR") - 1, 1);
339 	zend_declare_typed_class_constant(class_entry, const_FIELD_YEAR_name, &const_FIELD_YEAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
340 	zend_string_release(const_FIELD_YEAR_name);
341 
342 	zval const_FIELD_MONTH_value;
343 	ZVAL_LONG(&const_FIELD_MONTH_value, UCAL_MONTH);
344 	zend_string *const_FIELD_MONTH_name = zend_string_init_interned("FIELD_MONTH", sizeof("FIELD_MONTH") - 1, 1);
345 	zend_declare_typed_class_constant(class_entry, const_FIELD_MONTH_name, &const_FIELD_MONTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
346 	zend_string_release(const_FIELD_MONTH_name);
347 
348 	zval const_FIELD_WEEK_OF_YEAR_value;
349 	ZVAL_LONG(&const_FIELD_WEEK_OF_YEAR_value, UCAL_WEEK_OF_YEAR);
350 	zend_string *const_FIELD_WEEK_OF_YEAR_name = zend_string_init_interned("FIELD_WEEK_OF_YEAR", sizeof("FIELD_WEEK_OF_YEAR") - 1, 1);
351 	zend_declare_typed_class_constant(class_entry, const_FIELD_WEEK_OF_YEAR_name, &const_FIELD_WEEK_OF_YEAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
352 	zend_string_release(const_FIELD_WEEK_OF_YEAR_name);
353 
354 	zval const_FIELD_WEEK_OF_MONTH_value;
355 	ZVAL_LONG(&const_FIELD_WEEK_OF_MONTH_value, UCAL_WEEK_OF_MONTH);
356 	zend_string *const_FIELD_WEEK_OF_MONTH_name = zend_string_init_interned("FIELD_WEEK_OF_MONTH", sizeof("FIELD_WEEK_OF_MONTH") - 1, 1);
357 	zend_declare_typed_class_constant(class_entry, const_FIELD_WEEK_OF_MONTH_name, &const_FIELD_WEEK_OF_MONTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
358 	zend_string_release(const_FIELD_WEEK_OF_MONTH_name);
359 
360 	zval const_FIELD_DATE_value;
361 	ZVAL_LONG(&const_FIELD_DATE_value, UCAL_DATE);
362 	zend_string *const_FIELD_DATE_name = zend_string_init_interned("FIELD_DATE", sizeof("FIELD_DATE") - 1, 1);
363 	zend_declare_typed_class_constant(class_entry, const_FIELD_DATE_name, &const_FIELD_DATE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
364 	zend_string_release(const_FIELD_DATE_name);
365 
366 	zval const_FIELD_DAY_OF_YEAR_value;
367 	ZVAL_LONG(&const_FIELD_DAY_OF_YEAR_value, UCAL_DAY_OF_YEAR);
368 	zend_string *const_FIELD_DAY_OF_YEAR_name = zend_string_init_interned("FIELD_DAY_OF_YEAR", sizeof("FIELD_DAY_OF_YEAR") - 1, 1);
369 	zend_declare_typed_class_constant(class_entry, const_FIELD_DAY_OF_YEAR_name, &const_FIELD_DAY_OF_YEAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
370 	zend_string_release(const_FIELD_DAY_OF_YEAR_name);
371 
372 	zval const_FIELD_DAY_OF_WEEK_value;
373 	ZVAL_LONG(&const_FIELD_DAY_OF_WEEK_value, UCAL_DAY_OF_WEEK);
374 	zend_string *const_FIELD_DAY_OF_WEEK_name = zend_string_init_interned("FIELD_DAY_OF_WEEK", sizeof("FIELD_DAY_OF_WEEK") - 1, 1);
375 	zend_declare_typed_class_constant(class_entry, const_FIELD_DAY_OF_WEEK_name, &const_FIELD_DAY_OF_WEEK_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
376 	zend_string_release(const_FIELD_DAY_OF_WEEK_name);
377 
378 	zval const_FIELD_DAY_OF_WEEK_IN_MONTH_value;
379 	ZVAL_LONG(&const_FIELD_DAY_OF_WEEK_IN_MONTH_value, UCAL_DAY_OF_WEEK_IN_MONTH);
380 	zend_string *const_FIELD_DAY_OF_WEEK_IN_MONTH_name = zend_string_init_interned("FIELD_DAY_OF_WEEK_IN_MONTH", sizeof("FIELD_DAY_OF_WEEK_IN_MONTH") - 1, 1);
381 	zend_declare_typed_class_constant(class_entry, const_FIELD_DAY_OF_WEEK_IN_MONTH_name, &const_FIELD_DAY_OF_WEEK_IN_MONTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
382 	zend_string_release(const_FIELD_DAY_OF_WEEK_IN_MONTH_name);
383 
384 	zval const_FIELD_AM_PM_value;
385 	ZVAL_LONG(&const_FIELD_AM_PM_value, UCAL_AM_PM);
386 	zend_string *const_FIELD_AM_PM_name = zend_string_init_interned("FIELD_AM_PM", sizeof("FIELD_AM_PM") - 1, 1);
387 	zend_declare_typed_class_constant(class_entry, const_FIELD_AM_PM_name, &const_FIELD_AM_PM_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
388 	zend_string_release(const_FIELD_AM_PM_name);
389 
390 	zval const_FIELD_HOUR_value;
391 	ZVAL_LONG(&const_FIELD_HOUR_value, UCAL_HOUR);
392 	zend_string *const_FIELD_HOUR_name = zend_string_init_interned("FIELD_HOUR", sizeof("FIELD_HOUR") - 1, 1);
393 	zend_declare_typed_class_constant(class_entry, const_FIELD_HOUR_name, &const_FIELD_HOUR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
394 	zend_string_release(const_FIELD_HOUR_name);
395 
396 	zval const_FIELD_HOUR_OF_DAY_value;
397 	ZVAL_LONG(&const_FIELD_HOUR_OF_DAY_value, UCAL_HOUR_OF_DAY);
398 	zend_string *const_FIELD_HOUR_OF_DAY_name = zend_string_init_interned("FIELD_HOUR_OF_DAY", sizeof("FIELD_HOUR_OF_DAY") - 1, 1);
399 	zend_declare_typed_class_constant(class_entry, const_FIELD_HOUR_OF_DAY_name, &const_FIELD_HOUR_OF_DAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
400 	zend_string_release(const_FIELD_HOUR_OF_DAY_name);
401 
402 	zval const_FIELD_MINUTE_value;
403 	ZVAL_LONG(&const_FIELD_MINUTE_value, UCAL_MINUTE);
404 	zend_string *const_FIELD_MINUTE_name = zend_string_init_interned("FIELD_MINUTE", sizeof("FIELD_MINUTE") - 1, 1);
405 	zend_declare_typed_class_constant(class_entry, const_FIELD_MINUTE_name, &const_FIELD_MINUTE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
406 	zend_string_release(const_FIELD_MINUTE_name);
407 
408 	zval const_FIELD_SECOND_value;
409 	ZVAL_LONG(&const_FIELD_SECOND_value, UCAL_SECOND);
410 	zend_string *const_FIELD_SECOND_name = zend_string_init_interned("FIELD_SECOND", sizeof("FIELD_SECOND") - 1, 1);
411 	zend_declare_typed_class_constant(class_entry, const_FIELD_SECOND_name, &const_FIELD_SECOND_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
412 	zend_string_release(const_FIELD_SECOND_name);
413 
414 	zval const_FIELD_MILLISECOND_value;
415 	ZVAL_LONG(&const_FIELD_MILLISECOND_value, UCAL_MILLISECOND);
416 	zend_string *const_FIELD_MILLISECOND_name = zend_string_init_interned("FIELD_MILLISECOND", sizeof("FIELD_MILLISECOND") - 1, 1);
417 	zend_declare_typed_class_constant(class_entry, const_FIELD_MILLISECOND_name, &const_FIELD_MILLISECOND_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
418 	zend_string_release(const_FIELD_MILLISECOND_name);
419 
420 	zval const_FIELD_ZONE_OFFSET_value;
421 	ZVAL_LONG(&const_FIELD_ZONE_OFFSET_value, UCAL_ZONE_OFFSET);
422 	zend_string *const_FIELD_ZONE_OFFSET_name = zend_string_init_interned("FIELD_ZONE_OFFSET", sizeof("FIELD_ZONE_OFFSET") - 1, 1);
423 	zend_declare_typed_class_constant(class_entry, const_FIELD_ZONE_OFFSET_name, &const_FIELD_ZONE_OFFSET_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
424 	zend_string_release(const_FIELD_ZONE_OFFSET_name);
425 
426 	zval const_FIELD_DST_OFFSET_value;
427 	ZVAL_LONG(&const_FIELD_DST_OFFSET_value, UCAL_DST_OFFSET);
428 	zend_string *const_FIELD_DST_OFFSET_name = zend_string_init_interned("FIELD_DST_OFFSET", sizeof("FIELD_DST_OFFSET") - 1, 1);
429 	zend_declare_typed_class_constant(class_entry, const_FIELD_DST_OFFSET_name, &const_FIELD_DST_OFFSET_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
430 	zend_string_release(const_FIELD_DST_OFFSET_name);
431 
432 	zval const_FIELD_YEAR_WOY_value;
433 	ZVAL_LONG(&const_FIELD_YEAR_WOY_value, UCAL_YEAR_WOY);
434 	zend_string *const_FIELD_YEAR_WOY_name = zend_string_init_interned("FIELD_YEAR_WOY", sizeof("FIELD_YEAR_WOY") - 1, 1);
435 	zend_declare_typed_class_constant(class_entry, const_FIELD_YEAR_WOY_name, &const_FIELD_YEAR_WOY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
436 	zend_string_release(const_FIELD_YEAR_WOY_name);
437 
438 	zval const_FIELD_DOW_LOCAL_value;
439 	ZVAL_LONG(&const_FIELD_DOW_LOCAL_value, UCAL_DOW_LOCAL);
440 	zend_string *const_FIELD_DOW_LOCAL_name = zend_string_init_interned("FIELD_DOW_LOCAL", sizeof("FIELD_DOW_LOCAL") - 1, 1);
441 	zend_declare_typed_class_constant(class_entry, const_FIELD_DOW_LOCAL_name, &const_FIELD_DOW_LOCAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
442 	zend_string_release(const_FIELD_DOW_LOCAL_name);
443 
444 	zval const_FIELD_EXTENDED_YEAR_value;
445 	ZVAL_LONG(&const_FIELD_EXTENDED_YEAR_value, UCAL_EXTENDED_YEAR);
446 	zend_string *const_FIELD_EXTENDED_YEAR_name = zend_string_init_interned("FIELD_EXTENDED_YEAR", sizeof("FIELD_EXTENDED_YEAR") - 1, 1);
447 	zend_declare_typed_class_constant(class_entry, const_FIELD_EXTENDED_YEAR_name, &const_FIELD_EXTENDED_YEAR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
448 	zend_string_release(const_FIELD_EXTENDED_YEAR_name);
449 
450 	zval const_FIELD_JULIAN_DAY_value;
451 	ZVAL_LONG(&const_FIELD_JULIAN_DAY_value, UCAL_JULIAN_DAY);
452 	zend_string *const_FIELD_JULIAN_DAY_name = zend_string_init_interned("FIELD_JULIAN_DAY", sizeof("FIELD_JULIAN_DAY") - 1, 1);
453 	zend_declare_typed_class_constant(class_entry, const_FIELD_JULIAN_DAY_name, &const_FIELD_JULIAN_DAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
454 	zend_string_release(const_FIELD_JULIAN_DAY_name);
455 
456 	zval const_FIELD_MILLISECONDS_IN_DAY_value;
457 	ZVAL_LONG(&const_FIELD_MILLISECONDS_IN_DAY_value, UCAL_MILLISECONDS_IN_DAY);
458 	zend_string *const_FIELD_MILLISECONDS_IN_DAY_name = zend_string_init_interned("FIELD_MILLISECONDS_IN_DAY", sizeof("FIELD_MILLISECONDS_IN_DAY") - 1, 1);
459 	zend_declare_typed_class_constant(class_entry, const_FIELD_MILLISECONDS_IN_DAY_name, &const_FIELD_MILLISECONDS_IN_DAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
460 	zend_string_release(const_FIELD_MILLISECONDS_IN_DAY_name);
461 
462 	zval const_FIELD_IS_LEAP_MONTH_value;
463 	ZVAL_LONG(&const_FIELD_IS_LEAP_MONTH_value, UCAL_IS_LEAP_MONTH);
464 	zend_string *const_FIELD_IS_LEAP_MONTH_name = zend_string_init_interned("FIELD_IS_LEAP_MONTH", sizeof("FIELD_IS_LEAP_MONTH") - 1, 1);
465 	zend_declare_typed_class_constant(class_entry, const_FIELD_IS_LEAP_MONTH_name, &const_FIELD_IS_LEAP_MONTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
466 	zend_string_release(const_FIELD_IS_LEAP_MONTH_name);
467 
468 	zval const_FIELD_FIELD_COUNT_value;
469 	ZVAL_LONG(&const_FIELD_FIELD_COUNT_value, UCAL_FIELD_COUNT);
470 	zend_string *const_FIELD_FIELD_COUNT_name = zend_string_init_interned("FIELD_FIELD_COUNT", sizeof("FIELD_FIELD_COUNT") - 1, 1);
471 	zend_declare_typed_class_constant(class_entry, const_FIELD_FIELD_COUNT_name, &const_FIELD_FIELD_COUNT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
472 	zend_string_release(const_FIELD_FIELD_COUNT_name);
473 
474 	zval const_FIELD_DAY_OF_MONTH_value;
475 	ZVAL_LONG(&const_FIELD_DAY_OF_MONTH_value, UCAL_DAY_OF_MONTH);
476 	zend_string *const_FIELD_DAY_OF_MONTH_name = zend_string_init_interned("FIELD_DAY_OF_MONTH", sizeof("FIELD_DAY_OF_MONTH") - 1, 1);
477 	zend_declare_typed_class_constant(class_entry, const_FIELD_DAY_OF_MONTH_name, &const_FIELD_DAY_OF_MONTH_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
478 	zend_string_release(const_FIELD_DAY_OF_MONTH_name);
479 
480 	zval const_DOW_SUNDAY_value;
481 	ZVAL_LONG(&const_DOW_SUNDAY_value, UCAL_SUNDAY);
482 	zend_string *const_DOW_SUNDAY_name = zend_string_init_interned("DOW_SUNDAY", sizeof("DOW_SUNDAY") - 1, 1);
483 	zend_declare_typed_class_constant(class_entry, const_DOW_SUNDAY_name, &const_DOW_SUNDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
484 	zend_string_release(const_DOW_SUNDAY_name);
485 
486 	zval const_DOW_MONDAY_value;
487 	ZVAL_LONG(&const_DOW_MONDAY_value, UCAL_MONDAY);
488 	zend_string *const_DOW_MONDAY_name = zend_string_init_interned("DOW_MONDAY", sizeof("DOW_MONDAY") - 1, 1);
489 	zend_declare_typed_class_constant(class_entry, const_DOW_MONDAY_name, &const_DOW_MONDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
490 	zend_string_release(const_DOW_MONDAY_name);
491 
492 	zval const_DOW_TUESDAY_value;
493 	ZVAL_LONG(&const_DOW_TUESDAY_value, UCAL_TUESDAY);
494 	zend_string *const_DOW_TUESDAY_name = zend_string_init_interned("DOW_TUESDAY", sizeof("DOW_TUESDAY") - 1, 1);
495 	zend_declare_typed_class_constant(class_entry, const_DOW_TUESDAY_name, &const_DOW_TUESDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
496 	zend_string_release(const_DOW_TUESDAY_name);
497 
498 	zval const_DOW_WEDNESDAY_value;
499 	ZVAL_LONG(&const_DOW_WEDNESDAY_value, UCAL_WEDNESDAY);
500 	zend_string *const_DOW_WEDNESDAY_name = zend_string_init_interned("DOW_WEDNESDAY", sizeof("DOW_WEDNESDAY") - 1, 1);
501 	zend_declare_typed_class_constant(class_entry, const_DOW_WEDNESDAY_name, &const_DOW_WEDNESDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
502 	zend_string_release(const_DOW_WEDNESDAY_name);
503 
504 	zval const_DOW_THURSDAY_value;
505 	ZVAL_LONG(&const_DOW_THURSDAY_value, UCAL_THURSDAY);
506 	zend_string *const_DOW_THURSDAY_name = zend_string_init_interned("DOW_THURSDAY", sizeof("DOW_THURSDAY") - 1, 1);
507 	zend_declare_typed_class_constant(class_entry, const_DOW_THURSDAY_name, &const_DOW_THURSDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
508 	zend_string_release(const_DOW_THURSDAY_name);
509 
510 	zval const_DOW_FRIDAY_value;
511 	ZVAL_LONG(&const_DOW_FRIDAY_value, UCAL_FRIDAY);
512 	zend_string *const_DOW_FRIDAY_name = zend_string_init_interned("DOW_FRIDAY", sizeof("DOW_FRIDAY") - 1, 1);
513 	zend_declare_typed_class_constant(class_entry, const_DOW_FRIDAY_name, &const_DOW_FRIDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
514 	zend_string_release(const_DOW_FRIDAY_name);
515 
516 	zval const_DOW_SATURDAY_value;
517 	ZVAL_LONG(&const_DOW_SATURDAY_value, UCAL_SATURDAY);
518 	zend_string *const_DOW_SATURDAY_name = zend_string_init_interned("DOW_SATURDAY", sizeof("DOW_SATURDAY") - 1, 1);
519 	zend_declare_typed_class_constant(class_entry, const_DOW_SATURDAY_name, &const_DOW_SATURDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
520 	zend_string_release(const_DOW_SATURDAY_name);
521 
522 	zval const_DOW_TYPE_WEEKDAY_value;
523 	ZVAL_LONG(&const_DOW_TYPE_WEEKDAY_value, UCAL_WEEKDAY);
524 	zend_string *const_DOW_TYPE_WEEKDAY_name = zend_string_init_interned("DOW_TYPE_WEEKDAY", sizeof("DOW_TYPE_WEEKDAY") - 1, 1);
525 	zend_declare_typed_class_constant(class_entry, const_DOW_TYPE_WEEKDAY_name, &const_DOW_TYPE_WEEKDAY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
526 	zend_string_release(const_DOW_TYPE_WEEKDAY_name);
527 
528 	zval const_DOW_TYPE_WEEKEND_value;
529 	ZVAL_LONG(&const_DOW_TYPE_WEEKEND_value, UCAL_WEEKEND);
530 	zend_string *const_DOW_TYPE_WEEKEND_name = zend_string_init_interned("DOW_TYPE_WEEKEND", sizeof("DOW_TYPE_WEEKEND") - 1, 1);
531 	zend_declare_typed_class_constant(class_entry, const_DOW_TYPE_WEEKEND_name, &const_DOW_TYPE_WEEKEND_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
532 	zend_string_release(const_DOW_TYPE_WEEKEND_name);
533 
534 	zval const_DOW_TYPE_WEEKEND_OFFSET_value;
535 	ZVAL_LONG(&const_DOW_TYPE_WEEKEND_OFFSET_value, UCAL_WEEKEND_ONSET);
536 	zend_string *const_DOW_TYPE_WEEKEND_OFFSET_name = zend_string_init_interned("DOW_TYPE_WEEKEND_OFFSET", sizeof("DOW_TYPE_WEEKEND_OFFSET") - 1, 1);
537 	zend_declare_typed_class_constant(class_entry, const_DOW_TYPE_WEEKEND_OFFSET_name, &const_DOW_TYPE_WEEKEND_OFFSET_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
538 	zend_string_release(const_DOW_TYPE_WEEKEND_OFFSET_name);
539 
540 	zval const_DOW_TYPE_WEEKEND_CEASE_value;
541 	ZVAL_LONG(&const_DOW_TYPE_WEEKEND_CEASE_value, UCAL_WEEKEND_CEASE);
542 	zend_string *const_DOW_TYPE_WEEKEND_CEASE_name = zend_string_init_interned("DOW_TYPE_WEEKEND_CEASE", sizeof("DOW_TYPE_WEEKEND_CEASE") - 1, 1);
543 	zend_declare_typed_class_constant(class_entry, const_DOW_TYPE_WEEKEND_CEASE_name, &const_DOW_TYPE_WEEKEND_CEASE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
544 	zend_string_release(const_DOW_TYPE_WEEKEND_CEASE_name);
545 
546 	zval const_WALLTIME_FIRST_value;
547 	ZVAL_LONG(&const_WALLTIME_FIRST_value, UCAL_WALLTIME_FIRST);
548 	zend_string *const_WALLTIME_FIRST_name = zend_string_init_interned("WALLTIME_FIRST", sizeof("WALLTIME_FIRST") - 1, 1);
549 	zend_declare_typed_class_constant(class_entry, const_WALLTIME_FIRST_name, &const_WALLTIME_FIRST_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
550 	zend_string_release(const_WALLTIME_FIRST_name);
551 
552 	zval const_WALLTIME_LAST_value;
553 	ZVAL_LONG(&const_WALLTIME_LAST_value, UCAL_WALLTIME_LAST);
554 	zend_string *const_WALLTIME_LAST_name = zend_string_init_interned("WALLTIME_LAST", sizeof("WALLTIME_LAST") - 1, 1);
555 	zend_declare_typed_class_constant(class_entry, const_WALLTIME_LAST_name, &const_WALLTIME_LAST_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
556 	zend_string_release(const_WALLTIME_LAST_name);
557 
558 	zval const_WALLTIME_NEXT_VALID_value;
559 	ZVAL_LONG(&const_WALLTIME_NEXT_VALID_value, UCAL_WALLTIME_NEXT_VALID);
560 	zend_string *const_WALLTIME_NEXT_VALID_name = zend_string_init_interned("WALLTIME_NEXT_VALID", sizeof("WALLTIME_NEXT_VALID") - 1, 1);
561 	zend_declare_typed_class_constant(class_entry, const_WALLTIME_NEXT_VALID_name, &const_WALLTIME_NEXT_VALID_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
562 	zend_string_release(const_WALLTIME_NEXT_VALID_name);
563 
564 	return class_entry;
565 }
566 
register_class_IntlGregorianCalendar(zend_class_entry * class_entry_IntlCalendar)567 static zend_class_entry *register_class_IntlGregorianCalendar(zend_class_entry *class_entry_IntlCalendar)
568 {
569 	zend_class_entry ce, *class_entry;
570 
571 	INIT_CLASS_ENTRY(ce, "IntlGregorianCalendar", class_IntlGregorianCalendar_methods);
572 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_IntlCalendar, ZEND_ACC_NOT_SERIALIZABLE);
573 
574 	return class_entry;
575 }
576