mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-06 16:07:18 +08:00
make version_compare() match everything starting from alpha
to include PHP 7.1-rc1
This commit is contained in:
@ -936,7 +936,7 @@ TEXT;
|
|||||||
$this->setExpectedException('yii\base\Exception', 'Unable to generate a random key');
|
$this->setExpectedException('yii\base\Exception', 'Unable to generate a random key');
|
||||||
}
|
}
|
||||||
// Function mcrypt_create_iv() is deprecated since PHP 7.1
|
// Function mcrypt_create_iv() is deprecated since PHP 7.1
|
||||||
if (version_compare(PHP_VERSION, '7.1.0', '>=') && $functions['random_bytes'] === false && $functions['mcrypt_create_iv'] === true) {
|
if (version_compare(PHP_VERSION, '7.1.0alpha', '>=') && $functions['random_bytes'] === false && $functions['mcrypt_create_iv'] === true) {
|
||||||
$this->markTestSkipped('Function mcrypt_create_iv() is deprecated as of PHP 7.1');
|
$this->markTestSkipped('Function mcrypt_create_iv() is deprecated as of PHP 7.1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user