diff --git a/phpseclib/Math/BigInteger/Engines/Engine.php b/phpseclib/Math/BigInteger/Engines/Engine.php index 455cebd0..6c152202 100644 --- a/phpseclib/Math/BigInteger/Engines/Engine.php +++ b/phpseclib/Math/BigInteger/Engines/Engine.php @@ -390,10 +390,11 @@ abstract class Engine */ public function __debugInfo() { - return [ + $result = [ 'value' => '0x' . $this->toHex(true), 'engine' => basename(static::class) ]; + return $this->precision > 0 ? $result + ['precision' => $this->precision] : $result; } /**