]> granicus.if.org Git - php/commitdiff
Remove superfluous check for PHP 7+ tests
authorGabriel Caruso <carusogabriel34@gmail.com>
Fri, 27 Jul 2018 03:48:30 +0000 (00:48 -0300)
committerGabriel Caruso <carusogabriel34@gmail.com>
Fri, 27 Jul 2018 03:48:30 +0000 (00:48 -0300)
ext/opcache/tests/bug76275.phpt
ext/simplexml/tests/SimpleXMLElement_xpath_3.phpt
ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt

index 82e42721854214824198f713f7cb0adc88987f4e..4be55d8335ad4c3453e953020b4cf0f0361ae8e9 100644 (file)
@@ -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
index c968a33970b86acac4a3b3c72955b500e9d7ab6b..8682cf818d4becd0a8e44d1180521f026e5bf850 100644 (file)
@@ -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--
index cb6b3ad08f9882f6e67a80c8b809a7d2fbd2fd21..28e05176512b21296230b1035ad2b7f11607a8c7 100644 (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--