mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
only use runkit functions if runkit isn't loaded
This commit is contained in:
parent
8d82f92d18
commit
c0731df4be
@ -9,10 +9,12 @@ abstract class PhpseclibFunctionalTestCase extends PhpseclibTestCase
|
||||
{
|
||||
static public function setUpBeforeClass()
|
||||
{
|
||||
if (extension_loaded('runkit')) {
|
||||
self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
|
||||
self::ensureConstant('CRYPT_HASH_MODE', CRYPT_HASH_MODE_HASH);
|
||||
self::reRequireFile('Math/BigInteger.php');
|
||||
self::reRequireFile('Crypt/Hash.php');
|
||||
}
|
||||
parent::setUpBeforeClass();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user