@@ -55,9 +55,6 @@ static void _breakiter_factory(const char *func_name,
55
55
56
56
if (zend_parse_parameters (ZEND_NUM_ARGS (), " |s!" ,
57
57
&locale_str, &dummy) == FAILURE) {
58
- spprintf (&msg, 0 , " %s: bad arguments" , func_name);
59
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR, msg, 1 );
60
- efree (msg);
61
58
RETURN_NULL ();
62
59
}
63
60
@@ -118,8 +115,6 @@ U_CFUNC PHP_FUNCTION(breakiter_create_code_point_instance)
118
115
intl_error_reset (NULL );
119
116
120
117
if (zend_parse_parameters_none () == FAILURE) {
121
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
122
- " breakiter_create_code_point_instance: bad arguments" , 0 );
123
118
RETURN_NULL ();
124
119
}
125
120
@@ -133,8 +128,6 @@ U_CFUNC PHP_FUNCTION(breakiter_get_text)
133
128
object = ZEND_THIS;
134
129
135
130
if (zend_parse_parameters_none () == FAILURE) {
136
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
137
- " breakiter_get_text: bad arguments" , 0 );
138
131
RETURN_FALSE;
139
132
}
140
133
@@ -155,8 +148,6 @@ U_CFUNC PHP_FUNCTION(breakiter_set_text)
155
148
object = ZEND_THIS;
156
149
157
150
if (zend_parse_parameters (ZEND_NUM_ARGS (), " S" , &text) == FAILURE) {
158
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
159
- " breakiter_set_text: bad arguments" , 0 );
160
151
RETURN_FALSE;
161
152
}
162
153
@@ -189,9 +180,6 @@ static void _breakiter_no_args_ret_int32(
189
180
object = ZEND_THIS;
190
181
191
182
if (zend_parse_parameters_none () == FAILURE) {
192
- spprintf (&msg, 0 , " %s: bad arguments" , func_name);
193
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR, msg, 1 );
194
- efree (msg);
195
183
RETURN_FALSE;
196
184
}
197
185
@@ -213,9 +201,6 @@ static void _breakiter_int32_ret_int32(
213
201
object = ZEND_THIS;
214
202
215
203
if (zend_parse_parameters (ZEND_NUM_ARGS (), " l" , &arg) == FAILURE) {
216
- spprintf (&msg, 0 , " %s: bad arguments" , func_name);
217
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR, msg, 1 );
218
- efree (msg);
219
204
RETURN_FALSE;
220
205
}
221
206
@@ -290,8 +275,6 @@ U_CFUNC PHP_FUNCTION(breakiter_current)
290
275
object = ZEND_THIS;
291
276
292
277
if (zend_parse_parameters_none () == FAILURE) {
293
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
294
- " breakiter_current: bad arguments" , 0 );
295
278
RETURN_FALSE;
296
279
}
297
280
@@ -324,8 +307,6 @@ U_CFUNC PHP_FUNCTION(breakiter_is_boundary)
324
307
325
308
if (zend_parse_parameters (ZEND_NUM_ARGS (), " l" ,
326
309
&offset) == FAILURE) {
327
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
328
- " breakiter_is_boundary: bad arguments" , 0 );
329
310
RETURN_FALSE;
330
311
}
331
312
@@ -350,8 +331,6 @@ U_CFUNC PHP_FUNCTION(breakiter_get_locale)
350
331
object = ZEND_THIS;
351
332
352
333
if (zend_parse_parameters (ZEND_NUM_ARGS (), " l" , &locale_type) == FAILURE) {
353
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
354
- " breakiter_get_locale: bad arguments" , 0 );
355
334
RETURN_FALSE;
356
335
}
357
336
@@ -378,8 +357,6 @@ U_CFUNC PHP_FUNCTION(breakiter_get_parts_iterator)
378
357
object = ZEND_THIS;
379
358
380
359
if (zend_parse_parameters (ZEND_NUM_ARGS (), " |l" , &key_type) == FAILURE) {
381
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
382
- " breakiter_get_parts_iterator: bad arguments" , 0 );
383
360
RETURN_FALSE;
384
361
}
385
362
@@ -403,8 +380,6 @@ U_CFUNC PHP_FUNCTION(breakiter_get_error_code)
403
380
object = ZEND_THIS;
404
381
405
382
if (zend_parse_parameters_none () == FAILURE) {
406
- intl_error_set (NULL , U_ILLEGAL_ARGUMENT_ERROR,
407
- " breakiter_get_error_code: bad arguments" , 0 );
408
383
RETURN_FALSE;
409
384
}
410
385
@@ -423,8 +398,6 @@ U_CFUNC PHP_FUNCTION(breakiter_get_error_message)
423
398
object = ZEND_THIS;
424
399
425
400
if (zend_parse_parameters_none () == FAILURE) {
426
- intl_error_set ( NULL , U_ILLEGAL_ARGUMENT_ERROR,
427
- " breakiter_get_error_message: bad arguments" , 0 );
428
401
RETURN_FALSE;
429
402
}
430
403
0 commit comments