mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Remove superfluous check for PHP 7+ tests
This commit is contained in:
parent
d035bc2bfe
commit
7ec64a831d
3 changed files with 1 additions and 9 deletions
|
@ -6,12 +6,6 @@ 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) {
|
||||
|
@ -22,8 +16,8 @@ if (!is_callable('random_bytes')) {
|
|||
throw new Exception(
|
||||
'There is no suitable CSPRNG installed on your system'
|
||||
);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
echo 'Done';
|
||||
--EXPECT--
|
||||
Done
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
Testing xpath() with invalid XML
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
|
||||
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
|
||||
?>
|
||||
--FILE--
|
||||
|
|
|
@ -3,7 +3,6 @@ Testing xpath() with invalid XML
|
|||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
|
||||
if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
|
||||
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
|
||||
?>
|
||||
--FILE--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue