Class Zend_Crypt_Math_BigInteger

Description

Support for arbitrary precision mathematics in PHP.

Zend_Crypt_Math_BigInteger is a wrapper across three PHP extensions: bcmath, gmp and big_int. Since each offer similar functionality, but availability of each differs across installations of PHP, this wrapper attempts to select the fastest option available and encapsulate a subset of its functionality which all extensions share in common.

This class requires one of the three extensions to be available. BCMATH while the slowest, is available by default under Windows, and under Unix if PHP is compiled with the flag "--enable-bcmath". GMP requires the gmp library from http://www.swox.com/gmp/ and PHP compiled with the "--with-gmp" flag. BIG_INT support is available from a big_int PHP library available from only from PECL (a Windows port is not available).

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Crypt/Math/BigInteger.php (line 44)


	
			
Direct descendents
Class Description
 class Zend_Crypt_Math
Variable Summary
Method Summary
 Zend_Crypt_Math_BigInteger __construct ([string $extension = null])
 void _loadAdapter ([string $extension = null])
 void __call (string $methodName, array $args)
Variables
Zend_Crypt_Math_BigInteger_Interface $_math = null (line 52)

Holds an instance of one of the three arbitrary precision wrappers.

  • access: protected
Methods
Constructor __construct (line 62)

Constructor; a Factory which detects a suitable PHP extension for arbitrary precision math and instantiates the suitable wrapper object.

  • throws: Zend_Crypt_Math_BigInteger_Exception
  • access: public
Zend_Crypt_Math_BigInteger __construct ([string $extension = null])
  • string $extension
_loadAdapter (line 91)
  • throws: Zend_Crypt_Math_BigInteger_Exception
  • access: protected
void _loadAdapter ([string $extension = null])
  • string $extension
__call (line 78)

Redirect all public method calls to the wrapped extension object.

  • throws: Zend_Crypt_Math_BigInteger_Exception
  • access: public
void __call (string $methodName, array $args)
  • string $methodName
  • array $args

Documentation generated on Mon, 21 Jun 2010 15:09:02 -0400 by phpDocumentor 1.4.3