From b13d6fb13aaf95616d11b11e8f672bf6ba18cdfd Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 8 Sep 2016 00:53:08 +0200 Subject: [PATCH] make version_compare() match everything starting from alpha to include PHP 7.1-rc1 --- tests/framework/base/SecurityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/framework/base/SecurityTest.php b/tests/framework/base/SecurityTest.php index 3e061e5ed6..fc1abdc478 100644 --- a/tests/framework/base/SecurityTest.php +++ b/tests/framework/base/SecurityTest.php @@ -936,7 +936,7 @@ TEXT; $this->setExpectedException('yii\base\Exception', 'Unable to generate a random key'); } // 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'); }