1--TEST--
2XMLWriter::toStream() with encoding - test SHIFT_JIS
3--EXTENSIONS--
4xmlwriter
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}");
13unset($writer);
14
15?>
16--EXPECT--
17<?xml version="1.0" encoding="SHIFT_JIS"?>
18<!--������-->
19