diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index 59e403a8..9405dcf6 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -616,7 +616,7 @@ class ASN1 } // Fail mapping if all input items have not been consumed. - return $i < $n? null: $map; + return $i < $n ? null: $map; // the main diff between sets and sequences is the encapsulation of the foreach in another for loop case self::TYPE_SET: diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 8ea9f1b2..a43a39ac 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -803,6 +803,18 @@ class BigInteger } } + /** + * __debugInfo() magic method + * + * Will be called, automatically, when print_r() or var_dump() are called + * + * @access public + */ + function __debugInfo() + { + return array('value' => '0x' . $this->toHex(true)); + } + /** * Adds two BigIntegers. *