com php-src: Reverts some changes from 7ec64a83: ext/opcache/tests/bug76275.phpt
| From: | Gabriel Caruso | Date: | Fri, 27 Jul 2018 11:01:43 +0000 |
| Subject: | com php-src: Reverts some changes from 7ec64a83: ext/opcache/tests/bug76275.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102699@lists.php.net to get a copy of this message | ||
Commit: 1359ff8052bb82b352e29f87e80310bda38cf319
Author: Gabriel Caruso <carusogabriel34@gmail.com> Fri, 27 Jul 2018 08:01:43 -0300
Parents: a588b825d6f243935911e58591d4072ca5bcbcfb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1359ff8052bb82b352e29f87e80310bda38cf319
Log:
Reverts some changes from 7ec64a83
Checking for the PHP_VERSION_ID here is actually part of the test
Changed paths:
M ext/opcache/tests/bug76275.phpt
Diff:
diff --git a/ext/opcache/tests/bug76275.phpt b/ext/opcache/tests/bug76275.phpt
index 4be55d8..77d8515 100644
--- a/ext/opcache/tests/bug76275.phpt
+++ b/ext/opcache/tests/bug76275.phpt
@@ -6,18 +6,21 @@ opcache.enable_cli=1
opcache.file_cache=/tmp
--FILE--
<?php
+if (PHP_VERSION_ID >= 70000) {
+ echo "Done";
+ return;
+}
if (!is_callable('random_bytes')) {
try {
} catch (com_exception $e) {
}
-
function random_bytes($length)
{
throw new Exception(
'There is no suitable CSPRNG installed on your system'
);
+ return '';
}
}
-echo 'Done';
--EXPECT--
Done