Skip to content

Commit a8a2eb6

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: ext/iconv/tests/iconv_mime_encode.phpt: skip for "unknown" iconv ext/iconv/tests/eucjp2iso2022jp.phpt: skip for "unknown" iconv
2 parents c3966f7 + 863263a commit a8a2eb6

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

ext/iconv/tests/eucjp2iso2022jp.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
EUC-JP to ISO-2022-JP
33
--EXTENSIONS--
44
iconv
5+
--SKIPIF--
6+
<?php
7+
// ISO-2022-JP is a stateful encoding, so the right answer is not
8+
// unique. In particular, musl (type "unknown") is known to have an
9+
// inefficient encoding for it that does not agree with the expected
10+
// output below.
11+
if (ICONV_IMPL == "unknown") {
12+
die("skip byte-comparison of stateful encoding with unknown iconv");
13+
}
14+
?>
515
--INI--
616
error_reporting=2039
717
--FILE--

ext/iconv/tests/iconv_mime_encode.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
iconv_mime_encode()
33
--EXTENSIONS--
44
iconv
5+
--SKIPIF--
6+
<?php
7+
// ISO-2022-JP is a stateful encoding, so the right answer is not
8+
// unique. In particular, musl (type "unknown") is known to have an
9+
// inefficient encoding for it that does not agree with the expected
10+
// output below.
11+
if (ICONV_IMPL == "unknown") {
12+
die("skip byte-comparison of stateful encoding with unknown iconv");
13+
}
14+
?>
515
--INI--
616
iconv.internal_charset=iso-8859-1
717
--FILE--

0 commit comments

Comments
 (0)