Browse Source

Fix #17999 test

tags/2.0.36
Alexander Makarov 4 years ago
parent
commit
3ff6c9b527
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      tests/framework/base/SecurityTest.php

2
tests/framework/base/SecurityTest.php

@ -956,7 +956,7 @@ TEXT;
if (version_compare(PHP_VERSION, '7.1.0alpha', '>=') && $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) {
if ($functions['openssl_random_pseudo_bytes'] === false) { if ($functions['openssl_random_pseudo_bytes'] === false) {
$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');
} elseif (!$this->security->getUseLibreSSL() && !$this->isWindows()) { } elseif (!$this->security->shouldUseLibreSSL() && !$this->isWindows()) {
$this->markTestSkipped('Function openssl_random_pseudo_bytes need LibreSSL version >=2.1.5 or Windows system on server'); $this->markTestSkipped('Function openssl_random_pseudo_bytes need LibreSSL version >=2.1.5 or Windows system on server');
} }
} }

Loading…
Cancel
Save