Skip to content

Commit

Permalink
Remove unnecessary mbstring skipifs
Browse files Browse the repository at this point in the history
These functions are always available (if the extension is available
at all).
  • Loading branch information
nikic committed Jun 14, 2021
1 parent 1eaaabc commit a06d015
Show file tree
Hide file tree
Showing 80 changed files with 0 additions and 321 deletions.
4 changes: 0 additions & 4 deletions ext/mbstring/tests/bug43840.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/bug43841.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_strrpos() function : mb_strrpos offset is byte count for negative values
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/bug43998.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_strtolower() function : Two error messages returned for incorrect encoding for mb_strto[upper|lower]
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_strtolower') or die("skip mb_strtolower() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
5 changes: 0 additions & 5 deletions ext/mbstring/tests/casefold.phpt
Expand Up @@ -2,11 +2,6 @@
mb_strtoupper() / mb_strtolower()
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_strtolower') and
function_exists('mb_convert_case' ) or die("skip mb_convert_case() is not available");
?>
--INI--
output_handler=
--FILE--
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_convert_encoding_array.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_convert_encoding() function : array functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_convert_encoding_array2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_convert_encoding() function : Circular references
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_convert_encoding_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_convert_encoding() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
Expand Up @@ -2,10 +2,6 @@
Test mb_convert_encoding() function : empty encoding list
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build");
?>
--FILE--
<?php

Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_convert_kana.phpt
Expand Up @@ -2,10 +2,6 @@
Testing mb_convert_kana() function
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
if (!function_exists("mb_convert_kana")) print "skip mb_convert_kana() not available";
?>
--FILE--
<?php
$zenKakuA = 'ァアィイゥウェエォオカガキギク';
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_decode_mimeheader_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_decode_mimeheader() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_decode_mimeheader') or die("skip mb_decode_mimeheader() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_decode_mimeheader() : basic functionality ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_decode_mimeheader_variation2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_decode_mimeheader() function : variation
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_decode_mimeheader') or die("skip mb_decode_mimeheader() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_decode_mimeheader() : variation ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_decode_mimeheader_variation3.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_decode_mimeheader() function : variation
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_decode_mimeheader') or die("skip mb_decode_mimeheader() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_decode_mimeheader() : variation ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_decode_numericentity.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_decode_numericentity() function : Convert HTML-Entities to UTF-8
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
$str1 = '&#161;&#162;&#163;&#164;&#165;&#166;&#167;&#168;&#169;&#170;&#171;&#172;&#173;&#174;&#175;&#176;&#177;&#178;&#179;&#180;&#181;&#182;&#183;&#184;&#185;&#186;&#187;&#188;&#189;&#190;&#191;&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#215;&#216;&#217;&#218;&#219;&#220;&#221;&#222;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#240;&#241;&#242;&#243;&#244;&#245;&#246;&#247;&#248;&#249;&#250;&#251;&#252;&#253;&#254;&#255;';
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_mimeheader_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_mimeheader() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_mimeheader_basic2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_mimeheader() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_mimeheader_basic3.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_mimeheader() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_mimeheader_indent.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_mimeheader() function : basic functionality, indent
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
/* (string $str [, string $charset [, string $transfer_encoding [, string $linefeed [, int $indent]]]])
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_mimeheader_variation6.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_mimeheader() function : usage variations - Pass different strings to $linefeed arg
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
/* (string $str [, string $charset [, string $transfer_encoding [, string $linefeed [, int $indent]]]])
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_encode_numericentity.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_encode_numericentity() function : Convert UTF-8 to HTML-Entities
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
$str1 = '¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ';
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_internal_encoding_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_internal_encoding() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_internal_encoding_basic2.phpt
Expand Up @@ -7,10 +7,6 @@ output_encoding="ISO-8859-1"
internal_encoding="ISO-8859-1"
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_internal_encoding_error2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_internal_encoding() function : error conditions - pass an unknown encoding
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_internal_encoding_ini_basic2.phpt
Expand Up @@ -2,10 +2,6 @@
Test INI mbstring.internal_encoding basic - encoding when valid specified
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--INI--
mbstring.internal_encoding=ISO-8859-7
--FILE--
Expand Down
Expand Up @@ -2,10 +2,6 @@
Test INI mbstring.internal_encoding basic - invalid encoding specified in INI
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--INI--
mbstring.internal_encoding=BAD
--FILE--
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_internal_encoding_variation2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_internal_encoding() function : usage variations - Test different encodings
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_internal_encoding') or die("skip mb_internal_encoding() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_strcut_missing_boundary_check.phpt
Expand Up @@ -2,10 +2,6 @@
mb_strcut() missing boundary check.
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build");
?>
--FILE--
<?php
mb_internal_encoding("UCS-4LE");
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stripos_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stripos() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stripos_basic2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stripos() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stripos_empty_needle.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stripos() function : with empty needle
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--FILE--
<?php

Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stripos_error2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stripos() function : error conditions - Pass unknown encoding
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stripos_variation5_Bug45923.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stripos() function : usage variations - Pass different integers as $offset argument
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stristr_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stristr() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_stristr() : basic functionality ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stristr_empty_needle.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stristr() function : with empty needle
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
?>
--FILE--
<?php

Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stristr_error2.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stristr() function : error conditions
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_stristr() : error conditions ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_stristr_variation5.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_stristr() function : usage variation - multiple needles
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_stristr') or die("skip mb_stristr() is not available in this build");
?>
--FILE--
<?php
echo "*** Testing mb_stristr() : basic functionality ***\n";
Expand Down
4 changes: 0 additions & 4 deletions ext/mbstring/tests/mb_strlen_basic.phpt
Expand Up @@ -2,10 +2,6 @@
Test mb_strlen() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
?>
--FILE--
<?php
/*
Expand Down

0 comments on commit a06d015

Please sign in to comment.