mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-06-16 07:12:23 +00:00
- do class_exists(Crypt_Random) too to facilitate auto-loading
This commit is contained in:
parent
6ee991f604
commit
5eacf2b05d
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user