Remove superfluous SKIPIF sections of always available functions

This commit is contained in:
Gabriel Caruso 2018-07-29 15:42:19 -03:00
parent f2b5ac7963
commit 1461f8ef0d
No known key found for this signature in database
GPG key ID: EA85C7988F5A6877
28 changed files with 5 additions and 79 deletions

View 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');

View 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');

View 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");

View 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");

View 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");

View 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');

View 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');

View 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');
?>

View 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');
}

View 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');
?>

View 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--

View 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));

View 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--

View 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--

View 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

View 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 )

View 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");

View 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';

View file

@ -1,11 +1,5 @@
--TEST--
crypt() function
--SKIPIF--
<?php
if (!function_exists('crypt')) {
die("SKIP crypt() is not available");
}
?>
--FILE--
<?php

View 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");
}
?>

View 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");
}
?>

View 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"));

View 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

View 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");
}
?>

View 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");
}
?>

View file

@ -1,11 +1,5 @@
--TEST--
crypt() function - long salt
--SKIPIF--
<?php
if (!function_exists('crypt')) {
die("SKIP crypt() is not available");
}
?>
--FILE--
<?php

View 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");
}

View file

@ -3,7 +3,6 @@ microtime() function
--SKIPIF--
<?php
if (!function_exists('microtime')) die('skip microtime() not available');
die('warn system dependent');
?>
--FILE--
<?php