Skip to content

Commit

Permalink
Fix test on alpine/musl (php#15072)
Browse files Browse the repository at this point in the history
When libxml uses musl iconv, GBK encoding is not supported as a target encoding
  • Loading branch information
arnaud-lb authored Jul 23, 2024
1 parent 00e4588 commit e63f822
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 0 additions & 18 deletions ext/xmlwriter/tests/xmlwriter_toStream_encoding_gbk.phpt

This file was deleted.

18 changes: 18 additions & 0 deletions ext/xmlwriter/tests/xmlwriter_toStream_encoding_shiftjis.phpt
Original file line number Diff line number Diff line change
@@ -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"?>
<!--‚Ÿ‚Ÿ‚Ÿ-->

0 comments on commit e63f822

Please sign in to comment.