diff --git a/src/Intl/Formatter.php b/src/Intl/Formatter.php index 65adc8e4d..f7e0b002b 100644 --- a/src/Intl/Formatter.php +++ b/src/Intl/Formatter.php @@ -150,7 +150,8 @@ class Formatter } // Controllo sull'effettiva natura del numero - if (!ctype_digit(str_replace(array_values($this->getNumberSeparators()), '', $value))) { + $integer = str_replace(array_values($this->getNumberSeparators()), '', $value); + if (!ctype_digit($integer) || (strlen($integer) != strlen((int) $integer))) { return false; }