mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix test on alpine/musl (#15072)
When libxml uses musl iconv, GBK encoding is not supported as a target encoding
This commit is contained in:
parent
00e45887fa
commit
e63f822e6a
2 changed files with 18 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
--TEST--
|
||||
XMLWriter::toStream() with encoding - test GBK
|
||||
--EXTENSIONS--
|
||||
xmlwriter
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$h = fopen("php://output", "w");
|
||||
|
||||
$writer = XMLWriter::toStream($h);
|
||||
$writer->startDocument(encoding: "GBK");
|
||||
$writer->writeComment("\u{00E9}\u{00E9}\u{00E9}");
|
||||
unset($writer);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="GBK"?>
|
||||
<!--¨¦¨¦¨¦-->
|
|
@ -0,0 +1,18 @@
|
|||
--TEST--
|
||||
XMLWriter::toStream() with encoding - test SHIFT_JIS
|
||||
--EXTENSIONS--
|
||||
xmlwriter
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$h = fopen("php://output", "w");
|
||||
|
||||
$writer = XMLWriter::toStream($h);
|
||||
$writer->startDocument(encoding: "SHIFT_JIS");
|
||||
$writer->writeComment("\u{3041}\u{3041}\u{3041}");
|
||||
unset($writer);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="SHIFT_JIS"?>
|
||||
<!--‚Ÿ‚Ÿ‚Ÿ-->
|
Loading…
Add table
Add a link
Reference in a new issue