]> granicus.if.org Git - php/commitdiff
Remove superfluous SKIPIF sections of always available functions
authorGabriel Caruso <carusogabriel34@gmail.com>
Sun, 29 Jul 2018 18:42:19 +0000 (15:42 -0300)
committerGabriel Caruso <carusogabriel34@gmail.com>
Sun, 29 Jul 2018 18:42:19 +0000 (15:42 -0300)
28 files changed:
ext/date/tests/date_add_basic.phpt
ext/date/tests/date_create-1.phpt
ext/date/tests/date_create-2.phpt
ext/date/tests/date_modify-1.phpt
ext/date/tests/date_modify-2.phpt
ext/date/tests/date_sub_basic.phpt
ext/date/tests/strtotime_basic.phpt
ext/pcre/tests/locales.phpt
ext/pcre/tests/skip_001.inc
ext/soap/tests/bugs/bug39815.phpt
ext/standard/tests/file/file_get_contents_error001.phpt
ext/standard/tests/file/file_get_contents_error002.phpt
ext/standard/tests/image/image_type_to_extension.phpt
ext/standard/tests/image/image_type_to_mime_type.phpt
ext/standard/tests/image/image_type_to_mime_type_basic.phpt
ext/standard/tests/math/decbin_error.phpt
ext/standard/tests/strings/bug20934.phpt
ext/standard/tests/strings/bug73058.phpt
ext/standard/tests/strings/crypt.phpt
ext/standard/tests/strings/crypt_blowfish.phpt
ext/standard/tests/strings/crypt_blowfish_variation1.phpt
ext/standard/tests/strings/crypt_chars.phpt
ext/standard/tests/strings/crypt_des_error.phpt
ext/standard/tests/strings/crypt_sha256.phpt
ext/standard/tests/strings/crypt_sha512.phpt
ext/standard/tests/strings/crypt_variation1.phpt
ext/standard/tests/strings/moneyformat.phpt
ext/standard/tests/time/001.phpt

index 38d7ed76e25b98dad5c5d8c8ac88937d24e259f2..adddc1340f3aca09d7558d59ce141186fdab68d5 100644 (file)
@@ -2,8 +2,6 @@
 Test date_add() function : basic functionality 
 --CREDITS--
 Felix De Vliegher <felix.devliegher@gmail.com>
---SKIPIF--
-<?php if (!function_exists('date_add')) echo "skip: date_add() function not found!"; ?>
 --FILE--
 <?php
 date_default_timezone_set('UTC');
index 365d54dc9469e68d48ea03b8a8ce355962e4cf88..4b156de6e47cbb9c2993be9cdb1f4e053a0761ef 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 date_create() function [1]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
 --FILE--
 <?php
 date_default_timezone_set('Europe/Oslo');
index 406a6b0f2cb38b5083df1be9434c2f2e1b1ee210..206a0ab7f98b999d4604aab43352e5de3b8c998c 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 date_create() function [2]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
 --FILE--
 <?php
 date_default_timezone_set("GMT");
index c35e430df78ded6d6d2f49b5b45b9678a5dc37d3..6b3e3ae0c26d47d84c6d24610462ab692268ddc5 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 date_modify() function [1]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
 --FILE--
 <?php
 date_default_timezone_set("Pacific/Kwajalein");
index cc197fcdc499c6b5dad45249c89019d157598a25..40d813539bf5fa5438829c25b8be4d6ab5db39a8 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 date_modify() function [2]
---SKIPIF--
-<?php if (!function_exists('date_create')) echo "SKIP"; ?>
 --FILE--
 <?php
 date_default_timezone_set("GMT");
index 00e96261987e7f3f3301acde391889d4cbf14768..b6aed7881b9ab06ffac89f0e7645adc38a2701c3 100644 (file)
@@ -2,8 +2,6 @@
 Test date_sub() function : basic functionality 
 --CREDITS--
 Felix De Vliegher <felix.devliegher@gmail.com>
---SKIPIF--
-<?php if (!function_exists('date_sub')) echo "skip: date_sub() function not found!"; ?>
 --FILE--
 <?php
 date_default_timezone_set('UTC');
index dec63af97bbba367eba520510d0daf31e2710ccb..c64f0e8bdc5250182e01d091587eccad9370d795 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 strtotime() function - a test to show the difference in behaviour between 'first' and '1', "second" and "2"...
---SKIPIF--
-<?php if (!function_exists('strtotime')) echo "SKIP"; ?>
 --FILE--
 <?php
 date_default_timezone_set('UTC');
index a1030204eedd8b556dd54a72fa3591491a56979c..6dcb2bf6940f731dc39c43e934a3d46efbcc2ca5 100644 (file)
@@ -3,7 +3,6 @@ Localized match
 --SKIPIF--
 <?php 
 
-if (!function_exists('setlocale')) die('skip: setlocale() not available');
 if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not available');
 
 ?>
index b989dbbb9a67dc7c630958ca26bb94a6c5059bcb..35434ece5b56a07214ce2b11ee808b82b15e5272 100644 (file)
@@ -1,9 +1,5 @@
 <?php
 
-if (!function_exists('setlocale')) {
-       die('skip: setlocale() not available');
-}
-
 if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) {
        die('skip pt locale not available');
 }
index 1adc50a2defd088c82a65962d5b69172bcc93c7e..847c37161b19835ba01f7180b71f1c6d6e1844eb 100644 (file)
@@ -3,7 +3,6 @@ Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independen
 --SKIPIF--
 <?php 
 require_once('skipif.inc'); 
-if (!function_exists('setlocale')) die('skip setlocale() not available'); 
 if (!@setlocale(LC_ALL, 'sv_SE', 'sv_SE.ISO8859-1')) die('skip sv_SE locale not available');
 if (!@setlocale(LC_ALL, 'en_US', 'en_US.ISO8859-1')) die('skip en_US locale not available');
 ?>
index a347d9d3d1d86474302eba0cc55db2b7ed3c5777..1437b8a8a061dec020c6023b7431bf98a7b79b1a 100644 (file)
@@ -8,8 +8,6 @@ display_errors=false
 --SKIPIF--
 <?php
        if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
-       if (!function_exists("file_get_contents"))
-               die ("skip file_get_contents function is not found");
        if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
 ?>
 --FILE--
index 47c7b9cd6350402680cbb470b8477468d1a8db32..8ca11626723fa8883bb1a005ed39ee4bcbd16a0b 100644 (file)
@@ -5,11 +5,6 @@ file_get_contents() test using negative parameter for length (last parameter)
 "Sylvain R." <sracine@phpquebec.org>
 --INI--
 display_errors=false
---SKIPIF--
-<?php
-       if (!function_exists("file_get_contents"))
-               die ("skip file_get_contents function is not found");
-?>
 --FILE--
 <?php
        var_dump(file_get_contents("http://checkip.dyndns.com",null,null,0,-1));
index f6551fbc2312d1bac40b3b795b031233cd1b912e..a2e2758188da40aafc49b1ddae5a39dcd37d7cbb 100644 (file)
@@ -2,7 +2,6 @@
 image_type_to_extension()
 --SKIPIF--
 <?php 
-    if (!function_exists('image_type_to_extension')) die('skip image_type_to_extension() not available'); 
     require_once('skipif_imagetype.inc');
 ?>
 --FILE--
index 38a90c1bb33f74ac7ab320f0d6c01425d936e3d0..199d2c4b5822c84f179c2eeae801664721390e6c 100644 (file)
@@ -2,7 +2,6 @@
 image_type_to_mime_type()
 --SKIPIF--
 <?php
-       if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available');
        require_once('skipif_imagetype.inc');
 ?>
 --FILE--
index 9ee91961c243de7d3acf98fb56ff687ae30e71c1..8e3176ef4157ec7bbaea9f8db58c2041c4434916 100644 (file)
@@ -1,9 +1,5 @@
 --TEST--
 image_type_to_mime_type()
---SKIPIF--
-<?php 
-       if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available');
-?>
 --FILE--
 <?php
 
index fcfd1874a51d1d3e51d1d1e0e2ff7382e6e7bb02..007c998e48dc958a0486f7d86c42c29cdc9784c5 100644 (file)
@@ -2,10 +2,6 @@
 Test expm1() - Error conditions
 --INI--
 precision=14
---SKIPIF--
-<?php
-       function_exists('expm1') or die('skip expm1() is not supported in this build.');
-?>
 --FILE--
 <?php
 /* Prototype  : float expm1  ( float $arg  )
index 0d95081d54dfc5bf27ee44bdfd07417b54ce893b..121d9b6ecb1f682ce2a30ca8445f325447ef641a 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 Bug #20934 (htmlspecialchars returns latin1 from UTF-8)
---SKIPIF--
-<?php
-if (!function_exists("utf8_encode") || !function_exists("utf8_decode")) {
-       die("SKIP Neither utf8_encode() nor utf8_decode() are available");
-}
-?> 
 --FILE--
 <?php
 $str = utf8_encode("\xe0\xe1");
index f09985021347d0511c7c7a9c523a639486cecbe8..f769616f565f8a91fc9610d2c728c2f1428ce3b0 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 Bug #73058 crypt broken when salt is 'too' long
---SKIPIF--
-<?php
-if (!function_exists('crypt'))) {
-       die("SKIP crypt() is not available");
-}
-?> 
 --FILE--
 <?php
 $pass = 'secret';
index 3dcff2eaf265636813e103d4eb012a37ca75c2db..f64b61cb5ff289e8a5a054964af777edfddc4fd3 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 crypt() function
---SKIPIF--
-<?php
-if (!function_exists('crypt')) {
-       die("SKIP crypt() is not available");
-}
-?> 
 --FILE--
 <?php
 
index 0bf0d1949e1a9ebcd40eca676a198b4263870494..de2cf637df832aeafcb41bbc177e8fa2413d0906 100644 (file)
@@ -2,7 +2,7 @@
 Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c)
 --SKIPIF--
 <?php
-if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) {
+if (!defined("CRYPT_BLOWFISH")) {
     die("SKIP crypt()-blowfish is not available");
 }
 ?>
index 44367001049ccef7264b1c3b0ce9bc4d2985632d..020b8afc85513c0771b15bd075542281d752c5c6 100644 (file)
@@ -2,7 +2,7 @@
 Test Blowfish crypt() with invalid rounds
 --SKIPIF--
 <?php
-if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) {
+if (!defined("CRYPT_BLOWFISH")) {
     die("SKIP crypt()-blowfish is not available");
 }
 ?>
index 09cd8682160f9775d004178457f6ba33391e23a4..c4e65016f18f4c397289e041467cccae89081aab 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 crypt() function - characters > 0x80
---SKIPIF--
-<?php
-if (!function_exists('crypt')) {
-        die("SKIP crypt() is not available");
-}
-?>
 --FILE--
 <?php
 var_dump(crypt("À1234abcd", "99"));
index f480efc47089ca5931eace43c7acedbc20009256..6c77ccd9e0b2581c950a205afcbf8d52a9f87eaf 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 crypt(): *0 should return *1
---SKIPIF--
-<?php
-if (!function_exists('crypt')) {
-       die("SKIP crypt() is not available");
-}
-?>
 --FILE--
 <?php
 
index 37bc31bd8b7deb125fefa1407e66aa6208da709e..644ab8816990b87b7eaaa1d8be0e30e2a0ec432b 100644 (file)
@@ -2,7 +2,7 @@
 crypt() SHA-256 
 --SKIPIF--
 <?php
-if (!function_exists('crypt') || !defined("CRYPT_SHA256")) {
+if (!defined("CRYPT_SHA256")) {
        die("SKIP crypt()-sha256 is not available");
 }
 ?> 
index 615376e6b239e941f1559598a0109e8917cbef98..c94ebc5aea3d897866a4d2a3651ff5c0fbc1fb57 100644 (file)
@@ -2,7 +2,7 @@
 crypt() SHA-512
 --SKIPIF--
 <?php
-if (!function_exists('crypt') || !defined("CRYPT_SHA512")) {
+if (!defined("CRYPT_SHA512")) {
        die("SKIP crypt()-sha512 is not available");
 }
 ?> 
index 3315f035edaadce8cac6bf7439c084acf5b70ebb..3f351a6de4bcbe87f1992c01e8b44ce98fd31225 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 crypt() function - long salt
---SKIPIF--
-<?php
-if (!function_exists('crypt')) {
-       die("SKIP crypt() is not available");
-}
-?> 
 --FILE--
 <?php
 
index 8adc2e3ade06176c180f95e14dd8a02897a93517..0eec563a39067664fe4f94785c93f37e89a70458 100644 (file)
@@ -2,7 +2,7 @@
 money_format test
 --SKIPIF--
 <?php
-       if (!function_exists('money_format') || !function_exists('setlocale')) {
+       if (!function_exists('money_format')) {
                die("SKIP money_format - not supported\n");
        }
 
index 3b0ed8a77f40d4a1f95eea95017a2ff7e9a89523..0b76404ccb2699e6576823eea69c1855721722ec 100644 (file)
@@ -3,7 +3,6 @@ microtime() function
 --SKIPIF--
 <?php 
        if (!function_exists('microtime'))  die('skip microtime() not available'); 
-       die('warn system dependent');
 ?>
 --FILE--
 <?php