Skip to content

Commit e63f822

Browse files
authored
Fix test on alpine/musl (#15072)
When libxml uses musl iconv, GBK encoding is not supported as a target encoding
1 parent 00e4588 commit e63f822

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

ext/xmlwriter/tests/xmlwriter_toStream_encoding_gbk.phpt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
XMLWriter::toStream() with encoding - test SHIFT_JIS
3+
--EXTENSIONS--
4+
xmlwriter
5+
--FILE--
6+
<?php
7+
8+
$h = fopen("php://output", "w");
9+
10+
$writer = XMLWriter::toStream($h);
11+
$writer->startDocument(encoding: "SHIFT_JIS");
12+
$writer->writeComment("\u{3041}\u{3041}\u{3041}");
13+
unset($writer);
14+
15+
?>
16+
--EXPECT--
17+
<?xml version="1.0" encoding="SHIFT_JIS"?>
18+
<!--‚Ÿ‚Ÿ‚Ÿ-->

0 commit comments

Comments
 (0)