Home » Math » Math_BigInteger
Pure-PHP arbitrary precission integer arithmetic library
This package is unmaintained.
Download latest release 1.0.3 (there might be newer Composer installable version)
License: MIT
Description
Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or BCMath extensions, if available, and an internal implementation, otherwise.
Maintainers
- Jim Wigginton (terrafrost) — lead, active
Dependencies
Required
- PHP (>= 4.2)
- PEAR Installer (>= 1.4.0)
- pcre (extension)
Releases
- 1.0.3 (stable, 2016-04-12)
Release notes
License: MIT
- Fix PHP7 constructor deprecation notice
- 1.0.2 (stable, 2014-02-12)
Release notes
License: MIT
- (internal, bcmath) use OpenSSL, if available, for modular exponentiation
- (internal) use 64-bit ints, if available, and 64-bit floats, otherwise
- (all) improve random number generation
- change license to less restrictive MIT license - 1.0.1 (stable, 2014-01-27)
- 1.0.0 (stable, 2010-05-26)
Release notes
License: LGPL
- significant speed-ups
- new functions: gcd(), extendedGCD(), isPrime(), random(), randomPrime(), bitwise_leftRotate(), bitwise_rightRotate(), setPrecision(), toHex(), toBits() and equals()
- PHP_Compat is now optional. Store it in your include path if you require PHP4 support but otherwise it is unrequired. - 1.0.0RC3 (beta, 2007-02-06)
Release notes
License: LGPL
- Fix for bug #9654: In MODE_INTERNAL, modPow doesn't work occasionally
- Other bug fixes - 1.0.0RC2 (beta, 2006-11-16)
Release notes
License: LGPL
Added bitwise_or(), bitwise_and(), bitwise_xor(), and bitwise_not()
- 1.0.0RC1 (beta, 2006-10-28)
Release notes
License: LGPL
Initial PEAR release.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #9654 | Closed | Bug | 1.0.0RC2 | 2006-12-19 | In MODE_INTERNAL, modPow doesn't work occasionally |
| #13324 | Closed | Bug | 1.0.0RC3 | 2008-03-06 | Method BigInteger::bitwise_or produces wrong result |
| #14679 | Closed | Bug | 1.0.0RC3 | 2008-09-21 | Security issue due to seeding random number generator |
| #16027 | Closed | Doc | 1.0.0RC3 | 2009-03-12 | Misspelling in package summary |
| #16716 | Closed | Bug | 2009-10-20 | Not working in PHP5 | |
| #16734 | Closed | Bug | 1.0.0RC3 | 2009-10-24 | Can't generate expected value. |
| #16788 | Open | Req | 1.0.0RC3 | 2009-11-14 | modulo |
| #17051 | Closed | Bug | 1.0.0RC3 | 2010-02-02 | Unknown offset 79 in BigInteger.php in divide() |
| #17438 | Closed | Req | 1.0.0RC3 | 2010-05-26 | Serialisation support in MATH_BIGINTEGER_MODE_GMP |
| #17439 | Closed | Req | 1.0.0RC3 | 2010-05-26 | __toString support |
| #18015 | Closed | Bug | 1.0.0 | 2010-10-31 | Bug in Math_BigInteger::toBits() for large integers |
| #18037 | Closed | Bug | SVN | 2010-11-09 | Bug in Math_BigInteger::toBits |
| #19494 | Closed | Bug | 1.0.0 | 2012-07-04 | 48 gets translated wrongly to 0 |
| #20232 | Closed | Bug | SVN | 2014-04-04 | pear/pear_exception dependency fails composer install. |
| #20242 | Closed | Doc | 1.0.2 | 2014-04-12 | Convert git tag branches to actual git tags |
| #20303 | Spam | Req | Unknown | 2014-06-21 | Protheism |
| #21039 | Open | Bug | 1.0.2 | 2016-03-10 | Compatibility PHP 5.6: GMP numbers aren't resources anymore |
| #21053 | Open | Req | Unknown | 2016-04-12 | Github repo doesn't notify Packagist of new tags |