mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-05 13:28:27 +00:00
Merge branch 'master' into php5
* master: only use runkit functions if runkit isn't loaded Unit tests: changing the mode with runkit causes issues with static vars
This commit is contained in:
commit
194b0d967b
@ -7,6 +7,17 @@
|
|||||||
|
|
||||||
abstract class PhpseclibFunctionalTestCase extends PhpseclibTestCase
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $variable
|
* @param string $variable
|
||||||
* @param string|null $message
|
* @param string|null $message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user