Go to the source code of this file.
Classes | |
class | Auth_OpenID_MathLibrary |
class | Auth_OpenID_BcMathWrapper |
class | Auth_OpenID_GmpMathWrapper |
Functions | |
Auth_OpenID_math_extensions () | |
Auth_OpenID_detectMathLibrary ($exts) | |
& | Auth_OpenID_getMathLib () |
Auth_OpenID_setNoMathSupport () | |
Auth_OpenID_noMathSupport () |
Auth_OpenID_detectMathLibrary | ( | $ | exts | ) |
Detect which (if any) math library is available
Definition at line 365 of file BigMath.php.
& Auth_OpenID_getMathLib | ( | ) |
Auth_OpenID_getMathLib checks for the presence of long number extension modules and returns an instance of Auth_OpenID_MathWrapper which exposes the module's functionality.
Checks for the existence of an extension module described by the result of Auth_OpenID_math_extensions() and returns an instance of a wrapper for that extension module. If no extension module is found, an instance of Auth_OpenID_MathWrapper is returned, which wraps the native PHP integer implementation. The proper calling convention for this method is $lib =& Auth_OpenID_getMathLib().
This function checks for the existence of specific long number implementations in the following order: GMP followed by BCmath.
Definition at line 419 of file BigMath.php.
Auth_OpenID_math_extensions | ( | ) |
Define the supported extensions. An extension array has keys 'modules', 'extension', and 'class'. 'modules' is an array of PHP module names which the loading code will attempt to load. These values will be suffixed with a library file extension (e.g. ".so"). 'extension' is the name of a PHP extension which will be tested before 'modules' are loaded. 'class' is the string name of a Auth_OpenID_MathWrapper subclass which should be instantiated if a given extension is present.
You can define new math library implementations and add them to this array.
Definition at line 343 of file BigMath.php.
Auth_OpenID_noMathSupport | ( | ) |
Definition at line 466 of file BigMath.php.
Auth_OpenID_setNoMathSupport | ( | ) |
Definition at line 459 of file BigMath.php.