xref: /PHP-8.3/ext/dom/tests/bug50661.phpt (revision bd9f4fa6)
1--TEST--
2Bug #50661 (DOMDocument::loadXML does not allow UTF-16).
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$data = "\xFE\xFF\x00\x3C\x00\x66\x00\x6F\x00\x6F\x00\x2F\x00\x3E";
8
9$dom = new DOMDocument();
10$dom->loadXML($data);
11echo $dom->saveXML();
12
13?>
14--EXPECT--
15<?xml version="1.0"?>
16<foo/>
17