Skip to content

Commit 8f32392

Browse files
committed
Improve warning message
Mention "PHP_INT_MAX" instead of "maximum integer value", to make it more specific as to what was exceeded.
1 parent 51f40d8 commit 8f32392

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/standard/math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ PHPAPI void _php_math_basetozval(zend_string *str, int base, zval *ret)
898898
num = num * base + c;
899899
break;
900900
} else {
901-
zend_error(E_NOTICE, "Input number exceeds maximum integer value, precision has been lost in conversion");
901+
zend_error(E_NOTICE, "Input number is larger than PHP_INT_MAX, precision has been lost in conversion");
902902
fnum = (double)num;
903903
mode = 1;
904904
}

0 commit comments

Comments
 (0)