mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Reverts some changes from 7ec64a83
Checking for the PHP_VERSION_ID here is actually part of the test
This commit is contained in:
parent
a588b825d6
commit
1359ff8052
1 changed files with 5 additions and 2 deletions
|
@ -6,18 +6,21 @@ opcache.enable_cli=1
|
||||||
opcache.file_cache=/tmp
|
opcache.file_cache=/tmp
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
if (PHP_VERSION_ID >= 70000) {
|
||||||
|
echo "Done";
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!is_callable('random_bytes')) {
|
if (!is_callable('random_bytes')) {
|
||||||
try {
|
try {
|
||||||
} catch (com_exception $e) {
|
} catch (com_exception $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function random_bytes($length)
|
function random_bytes($length)
|
||||||
{
|
{
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
'There is no suitable CSPRNG installed on your system'
|
'There is no suitable CSPRNG installed on your system'
|
||||||
);
|
);
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo 'Done';
|
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
Done
|
Done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue