1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

small tweaks

This commit is contained in:
terrafrost 2015-11-21 22:55:20 -05:00
parent 1021eb3ab1
commit 37535744b2
2 changed files with 13 additions and 1 deletions

View File

@ -677,7 +677,7 @@ class File_ASN1
} }
// Fail mapping if all input items have not been consumed. // 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 // the main diff between sets and sequences is the encapsulation of the foreach in another for loop
case FILE_ASN1_TYPE_SET: case FILE_ASN1_TYPE_SET:

View File

@ -811,6 +811,18 @@ class Math_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. * Adds two BigIntegers.
* *