Reverts some changes from 7ec64a83

Checking for the PHP_VERSION_ID here is actually part of the test
This commit is contained in:
Gabriel Caruso 2018-07-27 08:01:43 -03:00
parent a588b825d6
commit 1359ff8052
No known key found for this signature in database
GPG key ID: EA85C7988F5A6877

View file

@ -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