Skip to content

Commit 085da27

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Use EXTENSIONS instead of SKIPIF sections in *.phpt
2 parents f39357b + 8d5fc8d commit 085da27

25 files changed

+57
-72
lines changed

ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Calling bzerr* functions on non-bz2 streams
3-
--SKIPIF--
4-
<?php if (!extension_loaded("bz2")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bz2
55
--FILE--
66
<?php
77
$f = fopen(__FILE__, 'r');

ext/com_dotnet/tests/gh8778.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug GH-8778 (Integer arithmethic with large number variants fails)
3+
--EXTENSIONS--
4+
com_dotnet
35
--SKIPIF--
46
<?php
5-
if (!extension_loaded("com_dotnet")) die("skip com_dotnet extension not available");
67
if (PHP_INT_SIZE < 8) die("skip for 64bit only");
78
?>
89
--FILE--

ext/dom/tests/bug79971_2.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #79971 (special character is breaking the path in xml function)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('dom')) die('skip dom extension not available');
6-
?>
3+
--EXTENSIONS--
4+
dom
75
--FILE--
86
<?php
97
$imp = new DOMImplementation;

ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
--TEST--
22
GHSA-3qrf-m4j2-pcrr (libxml global state entity loader bypass)
3+
--EXTENSIONS--
4+
dom
5+
libxml
6+
zend_test
37
--SKIPIF--
48
<?php
5-
if (!extension_loaded('libxml')) die('skip libxml extension not available');
6-
if (!extension_loaded('dom')) die('skip dom extension not available');
7-
if (!extension_loaded('zend-test')) die('skip zend-test extension not available');
89
if (!function_exists('zend_test_override_libxml_global_state')) die('skip not for Windows');
910
?>
1011
--FILE--

ext/filter/tests/bug77221.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #77221 (Request IP address filter flag to exclude non-global IP addresses)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('filter')) die("skip filter extension not available");
6-
?>
3+
--EXTENSIONS--
4+
filter
75
--FILE--
86
<?php
97

ext/filter/tests/bug81122.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #81122 (SSRF bypass in FILTER_VALIDATE_URL)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('filter')) die("skip filter extension not available");
6-
?>
3+
--EXTENSIONS--
4+
filter
75
--FILE--
86
<?php
97
$urls = [

ext/intl/tests/gh10647.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug GH-10647 (Spoofchecker::isSuspicious $errorCode always null)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded("intl")) die("skip intl extension not available");
6-
?>
3+
--EXTENSIONS--
4+
intl
75
--FILE--
86
<?php
97
$error = 123;

ext/intl/tests/gh8364.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug GH-8364 (msgfmt_format $values may not support references)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded("intl")) die("skip intl extension not available");
6-
?>
3+
--EXTENSIONS--
4+
intl
75
--FILE--
86
<?php
97
$formatter = new MessageFormatter('en', 'translate {0}');

ext/intl/tests/locale/bug72809.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #72809 (Locale::lookup() wrong result with canonicalize option)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('intl')) die("skip intl extension not avaible");
6-
?>
3+
--EXTENSIONS--
4+
intl
75
--FILE--
86
<?php
97
var_dump(

ext/mbstring/tests/gh8086.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
GH-8086 (mb_send_mail() function not working correctly in PHP 8.x)
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded("mbstring")) die("skip mbstring extension not available");
6-
?>
3+
--EXTENSIONS--
4+
mbstring
75
--INI--
86
sendmail_path={MAIL:{PWD}/gh8086.eml}
97
mail.mixed_lf_and_crlf=on

0 commit comments

Comments
 (0)