mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +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
|
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) {
|
||||||
|
|
@ -22,8 +16,8 @@ if (!is_callable('random_bytes')) {
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
Testing xpath() with invalid XML
|
Testing xpath() with invalid XML
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?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");
|
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ Testing xpath() with invalid XML
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
|
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");
|
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue