Commit 8db89af6bdf for php
commit 8db89af6bdfa6c0e9b891b8e5b0dd23b3cea5b84
Author: Weilin Du <weilindu@php.net>
Date: Mon Oct 19 21:32:44 2026 +0800
ext/intl: Remove redundant SKIPIF checks from intl tests (#24416)
These SKIPIFs are hidding issues.
If they are not then we are in trouble and the tests should reflect that.
diff --git a/ext/intl/tests/bug62915-2.phpt b/ext/intl/tests/bug62915-2.phpt
index c3921081df2..9623e45e37e 100644
--- a/ext/intl/tests/bug62915-2.phpt
+++ b/ext/intl/tests/bug62915-2.phpt
@@ -2,11 +2,6 @@
Bug #62915: cloning of several classes is defective
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!class_exists('Spoofchecker'))
- die('skip intl extension does not have spoof checker');
-?>
--FILE--
<?php
class A extends IntlDateFormatter {
diff --git a/ext/intl/tests/bug72506.phpt b/ext/intl/tests/bug72506.phpt
index 102de1e8796..94f66366f54 100644
--- a/ext/intl/tests/bug72506.phpt
+++ b/ext/intl/tests/bug72506.phpt
@@ -5,10 +5,6 @@
not clear yet with which values exactly.
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!defined('INTL_IDNA_VARIANT_UTS46')) die('skip no UTS #46 API');
-?>
--FILE--
<?php
// ASCII domain name with 255 characters
diff --git a/ext/intl/tests/idn_uts46_basic.phpt b/ext/intl/tests/idn_uts46_basic.phpt
index 689dae375f2..1be57ec0bc6 100644
--- a/ext/intl/tests/idn_uts46_basic.phpt
+++ b/ext/intl/tests/idn_uts46_basic.phpt
@@ -2,11 +2,6 @@
IDN UTS #46 API basic tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php
- if (!defined('INTL_IDNA_VARIANT_UTS46'))
- die('skip no UTS #46 API');
-?>
--FILE--
<?php
$utf8dn = "www.fußball.com";
diff --git a/ext/intl/tests/idn_uts46_errors.phpt b/ext/intl/tests/idn_uts46_errors.phpt
index be7121482b7..770b1cbd14d 100644
--- a/ext/intl/tests/idn_uts46_errors.phpt
+++ b/ext/intl/tests/idn_uts46_errors.phpt
@@ -2,11 +2,6 @@
IDN UTS #46 API error tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php
- if (!defined('INTL_IDNA_VARIANT_UTS46'))
- die('skip no UTS #46 API');
-?>
--FILE--
<?php
echo "=> PHP level errors", "\n";
diff --git a/ext/intl/tests/normalizer_normalize_kc_cf.phpt b/ext/intl/tests/normalizer_normalize_kc_cf.phpt
index d6786b070cc..59e10bf2f23 100644
--- a/ext/intl/tests/normalizer_normalize_kc_cf.phpt
+++ b/ext/intl/tests/normalizer_normalize_kc_cf.phpt
@@ -2,8 +2,6 @@
normalize() NFKC_Casefold
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!defined('Normalizer::FORM_KC_CF')) print 'skip Normalizer::FORM_KC_CF constant not defined'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_002.phpt b/ext/intl/tests/spoofchecker_002.phpt
index 1a871a72f6a..98b91073a0e 100644
--- a/ext/intl/tests/spoofchecker_002.phpt
+++ b/ext/intl/tests/spoofchecker_002.phpt
@@ -2,8 +2,6 @@
spoofchecker confusable tests
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_003.phpt b/ext/intl/tests/spoofchecker_003.phpt
index 1e019a96142..76d8bb81e3d 100644
--- a/ext/intl/tests/spoofchecker_003.phpt
+++ b/ext/intl/tests/spoofchecker_003.phpt
@@ -2,8 +2,6 @@
spoofchecker with locale settings
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_005.phpt b/ext/intl/tests/spoofchecker_005.phpt
index 9fc6628e6ae..abc6e11a62b 100644
--- a/ext/intl/tests/spoofchecker_005.phpt
+++ b/ext/intl/tests/spoofchecker_005.phpt
@@ -2,8 +2,6 @@
spoofchecker with settings changed
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_006.phpt b/ext/intl/tests/spoofchecker_006.phpt
index a9768d932d6..6542d08720f 100644
--- a/ext/intl/tests/spoofchecker_006.phpt
+++ b/ext/intl/tests/spoofchecker_006.phpt
@@ -2,8 +2,6 @@
spoofchecker suspicious character checker
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_007.phpt b/ext/intl/tests/spoofchecker_007.phpt
index 5f3dbb47f19..9243b673d97 100644
--- a/ext/intl/tests/spoofchecker_007.phpt
+++ b/ext/intl/tests/spoofchecker_007.phpt
@@ -2,8 +2,6 @@
spoofchecker with restriction level
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_008.phpt b/ext/intl/tests/spoofchecker_008.phpt
index 3f6fd39777b..18ad416e6b2 100644
--- a/ext/intl/tests/spoofchecker_008.phpt
+++ b/ext/intl/tests/spoofchecker_008.phpt
@@ -2,8 +2,6 @@
spoofchecker with locale settings
--EXTENSIONS--
intl
---SKIPIF--
-<?php if(!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_double_ctor.phpt b/ext/intl/tests/spoofchecker_double_ctor.phpt
index 138a9cbffbb..50f05883a88 100644
--- a/ext/intl/tests/spoofchecker_double_ctor.phpt
+++ b/ext/intl/tests/spoofchecker_double_ctor.phpt
@@ -2,8 +2,6 @@
Spoofchecker double construction should not be allowed
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print "skip"; ?>
--FILE--
<?php
$checker = new Spoofchecker();
diff --git a/ext/intl/tests/spoofchecker_setchecks_error_code.phpt b/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
index a9c1eaeab45..886a09a50c6 100644
--- a/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
+++ b/ext/intl/tests/spoofchecker_setchecks_error_code.phpt
@@ -2,8 +2,6 @@
Spoofchecker::setChecks() records the ICU error code
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
diff --git a/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt b/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
index 56cc194991e..f34f2ba1dfe 100644
--- a/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
+++ b/ext/intl/tests/spoofchecker_supported_icu57_apis.phpt
@@ -2,8 +2,6 @@
Spoofchecker exposes restriction-level APIs on all supported ICU versions
--EXTENSIONS--
intl
---SKIPIF--
-<?php if (!class_exists("Spoofchecker")) print 'skip'; ?>
--FILE--
<?php
$r = new ReflectionClass("Spoofchecker");
diff --git a/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt b/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
index f3078e8969f..d15d255a47c 100644
--- a/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
+++ b/ext/intl/tests/spoofchecker_unknown_restriction_level.phpt
@@ -2,10 +2,6 @@
Spoofchecker attempting to pass an unknown restriction level
--EXTENSIONS--
intl
---SKIPIF--
-<?php
-if (!class_exists("Spoofchecker")) print 'skip';
-?>
--FILE--
<?php