diff --git a/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php b/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php index f34018f3..2c770c1d 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php +++ b/phpseclib/Math/BigInteger/Engines/PHP/Reductions/EvalBarrett.php @@ -169,14 +169,11 @@ abstract class EvalBarrett extends Base return 'return [];'; } - $label = 'label_' . uniqid(); - $regular = ' $length = count($' . $input . '); if (!$length) { $' . $output . ' = []; - goto ' . $label . '; - } + }else{ $' . $output . ' = array_fill(0, $length + ' . count($arr) . ', 0); $carry = 0;'; @@ -224,9 +221,7 @@ abstract class EvalBarrett extends Base $regular.= '$' . $output. '[++$k] = $carry; $carry = 0;'; - $regular.= '}'; - - $regular.= $label . ':'; + $regular.= '}}'; //if (count($arr) < 2 * self::KARATSUBA_CUTOFF) { //}