diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-07-27 08:01:43 -0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-07-27 08:01:43 -0300 |
commit | 1359ff8052bb82b352e29f87e80310bda38cf319 (patch) | |
tree | d7dc35ae716a74ea89562b1504ad5fca4e275092 | |
parent | a588b825d6f243935911e58591d4072ca5bcbcfb (diff) | |
download | php-git-1359ff8052bb82b352e29f87e80310bda38cf319.tar.gz |
Reverts some changes from 7ec64a83
Checking for the PHP_VERSION_ID here is actually part of the test
-rw-r--r-- | ext/opcache/tests/bug76275.phpt | 7 |
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 |