summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/tests/bug76275.phpt7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/opcache/tests/bug76275.phpt b/ext/opcache/tests/bug76275.phpt
index 4be55d8335..77d8515fab 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