From a31ccc173182019858a371622368db72a1730dbc Mon Sep 17 00:00:00 2001 From: wapmorgan Date: Tue, 11 Jul 2017 17:30:11 +0300 Subject: [PATCH] Fix infinite loop on x86 architectures in CardinalNumeral --- src/English/CardinalNumeral.php | 10 +++++----- src/Russian/CardinalNumeral.php | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/English/CardinalNumeral.php b/src/English/CardinalNumeral.php index 4cff7fc..1a8c0e7 100644 --- a/src/English/CardinalNumeral.php +++ b/src/English/CardinalNumeral.php @@ -36,11 +36,11 @@ class CardinalNumeral extends NumeralCreation { ); static public $exponents = array( - 100 => 'hundred', - 1000 => 'thousand', - 1000000 => 'million', - 1000000000 => 'billion', - 1000000000000 => 'trillion', + '100' => 'hundred', + '1000' => 'thousand', + '1000000' => 'million', + '1000000000' => 'billion', + '1000000000000' => 'trillion', ); static public function getCases($number) {} diff --git a/src/Russian/CardinalNumeral.php b/src/Russian/CardinalNumeral.php index 52e1968..c4b31ff 100644 --- a/src/Russian/CardinalNumeral.php +++ b/src/Russian/CardinalNumeral.php @@ -50,10 +50,11 @@ class CardinalNumeral extends NumeralCreation implements Cases { ); static protected $exponents = array( - 1000 => 'тысяча', - 1000000 => 'миллион', - 1000000000 => 'миллиард', - 1000000000000 => 'триллион', + '1000' => 'тысяча', + '1000000' => 'миллион', + '1000000000' => 'миллиард', + '1000000000000' => 'триллион', + '1000000000000000' => 'квадриллион', ); static protected $precalculated = array(