- do class_exists(Crypt_Random) too to facilitate auto-loading

This commit is contained in:
terrafrost 2012-06-24 16:53:16 -05:00
parent 6ee991f604
commit 5eacf2b05d
3 changed files with 9 additions and 3 deletions

View File

@ -79,7 +79,9 @@ if (!class_exists('Math_BigInteger')) {
/**
* Include Crypt_Random
*/
if (!function_exists('crypt_random')) {
// the class_exists() will only be called if the crypt_random function hasn't been defined and
// will trigger a call to __autoload() if you're wanting to auto-load classes
if (!function_exists('crypt_random') && !class_exists('Crypt_Random')) {
require_once('Crypt/Random.php');
}

View File

@ -104,7 +104,9 @@ if (!class_exists('Crypt_RC4')) {
/**
* Include Crypt_Random
*/
if (!function_exists('crypt_random')) {
// the class_exists() will only be called if the crypt_random function hasn't been defined and
// will trigger a call to __autoload() if you're wanting to auto-load classes
if (!function_exists('crypt_random') && !class_exists('Crypt_Random')) {
require_once('Crypt/Random.php');
}

View File

@ -80,7 +80,9 @@ if (!class_exists('Math_BigInteger')) {
/**
* Include Crypt_Random
*/
if (!function_exists('crypt_random')) {
// the class_exists() will only be called if the crypt_random function hasn't been defined and
// will trigger a call to __autoload() if you're wanting to auto-load classes
if (!function_exists('crypt_random') && !class_exists('Crypt_Random')) {
require_once('Crypt/Random.php');
}