mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
Merge pull request #87 from terite/master
Fix SSH2 when autoloaded from Composer
This commit is contained in:
commit
39e5b1d029
@ -43,6 +43,9 @@
|
|||||||
"File": "phpseclib/",
|
"File": "phpseclib/",
|
||||||
"Math": "phpseclib/",
|
"Math": "phpseclib/",
|
||||||
"Net": "phpseclib/"
|
"Net": "phpseclib/"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"phpseclib/Crypt/Random.php"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,7 @@ if (!class_exists('Math_BigInteger')) {
|
|||||||
/**
|
/**
|
||||||
* Include Crypt_Random
|
* Include Crypt_Random
|
||||||
*/
|
*/
|
||||||
// the class_exists() will only be called if the crypt_random_string function hasn't been defined and
|
if (!function_exists('crypt_random_string')) {
|
||||||
// will trigger a call to __autoload() if you're wanting to auto-load classes
|
|
||||||
// call function_exists() a second time to stop the require_once from being called outside
|
|
||||||
// of the auto loader
|
|
||||||
if (!function_exists('crypt_random_string') && !class_exists('Crypt_Random') && !function_exists('crypt_random_string')) {
|
|
||||||
require_once('Crypt/Random.php');
|
require_once('Crypt/Random.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user