@@ -153,7 +153,7 @@ PHP_FUNCTION(bcadd)
153
153
154
154
if (ZEND_NUM_ARGS () == 3 ) {
155
155
if (scale_param < 0 || scale_param > INT_MAX ) {
156
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
156
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
157
157
RETURN_THROWS ();
158
158
}
159
159
scale = (int ) scale_param ;
@@ -192,7 +192,7 @@ PHP_FUNCTION(bcsub)
192
192
193
193
if (ZEND_NUM_ARGS () == 3 ) {
194
194
if (scale_param < 0 || scale_param > INT_MAX ) {
195
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
195
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
196
196
RETURN_THROWS ();
197
197
}
198
198
scale = (int ) scale_param ;
@@ -231,7 +231,7 @@ PHP_FUNCTION(bcmul)
231
231
232
232
if (ZEND_NUM_ARGS () == 3 ) {
233
233
if (scale_param < 0 || scale_param > INT_MAX ) {
234
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
234
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
235
235
RETURN_THROWS ();
236
236
}
237
237
scale = (int ) scale_param ;
@@ -270,7 +270,7 @@ PHP_FUNCTION(bcdiv)
270
270
271
271
if (ZEND_NUM_ARGS () == 3 ) {
272
272
if (scale_param < 0 || scale_param > INT_MAX ) {
273
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
273
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
274
274
RETURN_THROWS ();
275
275
}
276
276
scale = (int ) scale_param ;
@@ -316,7 +316,7 @@ PHP_FUNCTION(bcmod)
316
316
317
317
if (ZEND_NUM_ARGS () == 3 ) {
318
318
if (scale_param < 0 || scale_param > INT_MAX ) {
319
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
319
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
320
320
RETURN_THROWS ();
321
321
}
322
322
scale = (int ) scale_param ;
@@ -371,7 +371,7 @@ PHP_FUNCTION(bcpowmod)
371
371
372
372
if (ZEND_NUM_ARGS () == 4 ) {
373
373
if (scale_param < 0 || scale_param > INT_MAX ) {
374
- zend_argument_value_error (4 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
374
+ zend_argument_value_error (4 , "must be between 0 and %d " , INT_MAX );
375
375
RETURN_THROWS ();
376
376
}
377
377
scale = (int ) scale_param ;
@@ -409,7 +409,7 @@ PHP_FUNCTION(bcpow)
409
409
410
410
if (ZEND_NUM_ARGS () == 3 ) {
411
411
if (scale_param < 0 || scale_param > INT_MAX ) {
412
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
412
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
413
413
RETURN_THROWS ();
414
414
}
415
415
scale = (int ) scale_param ;
@@ -447,7 +447,7 @@ PHP_FUNCTION(bcsqrt)
447
447
448
448
if (ZEND_NUM_ARGS () == 2 ) {
449
449
if (scale_param < 0 || scale_param > INT_MAX ) {
450
- zend_argument_value_error (2 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
450
+ zend_argument_value_error (2 , "must be between 0 and %d " , INT_MAX );
451
451
RETURN_THROWS ();
452
452
}
453
453
scale = (int ) scale_param ;
@@ -485,7 +485,7 @@ PHP_FUNCTION(bccomp)
485
485
486
486
if (ZEND_NUM_ARGS () == 3 ) {
487
487
if (scale_param < 0 || scale_param > INT_MAX ) {
488
- zend_argument_value_error (3 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
488
+ zend_argument_value_error (3 , "must be between 0 and %d " , INT_MAX );
489
489
RETURN_THROWS ();
490
490
}
491
491
scale = (int ) scale_param ;
@@ -523,7 +523,7 @@ PHP_FUNCTION(bcscale)
523
523
524
524
if (ZEND_NUM_ARGS () == 1 ) {
525
525
if (new_scale < 0 || new_scale > INT_MAX ) {
526
- zend_argument_value_error (1 , "must be greater than or equal to 0 and less than INT_MAX (%d) " , INT_MAX );
526
+ zend_argument_value_error (1 , "must be between 0 and %d " , INT_MAX );
527
527
RETURN_THROWS ();
528
528
}
529
529
BCG (bc_precision ) = (int ) new_scale ;
0 commit comments