Skip to content

Commit 6f6694e

Browse files
remove the 4th param in intl_error_set
1 parent 0e083db commit 6f6694e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/intl/rangeformatter/rangeformatter_class.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ U_CFUNC PHP_METHOD(IntlNumberRangeFormatter, createFromSkeleton)
120120
UnlocalizedNumberFormatter nf = NumberFormatter::forSkeleton(skeleton_ustr, status);
121121

122122
if (U_FAILURE(status)) {
123-
intl_error_set(NULL, status, "Failed to create the number skeleton", 0);
123+
intl_error_set(NULL, status, "Failed to create the number skeleton");
124124
zend_throw_exception(IntlException_ce_ptr, "Failed to create the number skeleton", 0);
125125
RETURN_THROWS();
126126
}
@@ -161,15 +161,15 @@ U_CFUNC PHP_METHOD(IntlNumberRangeFormatter, format)
161161
UnicodeString result = RANGEFORMATTER_OBJECT(obj)->formatFormattableRange(start_formattable, end_formattable, error).toString(error);
162162

163163
if (U_FAILURE(error)) {
164-
intl_error_set(NULL, error, "Failed to format number range", 0);
164+
intl_error_set(NULL, error, "Failed to format number range");
165165
zend_throw_exception(IntlException_ce_ptr, "Failed to format number range", 0);
166166
RETURN_THROWS();
167167
}
168168

169169
zend_string *ret = intl_charFromString(result, &error);
170170

171171
if (U_FAILURE(error)) {
172-
intl_error_set(NULL, error, "Failed to convert result to UTF-8", 0);
172+
intl_error_set(NULL, error, "Failed to convert result to UTF-8");
173173
zend_throw_exception(IntlException_ce_ptr, "Failed to convert result to UTF-8", 0);
174174
RETURN_THROWS();
175175
}

0 commit comments

Comments
 (0)