xref: /PHP-5.4/ext/dom/tests/bug50661.phpt (revision bc1feb90)
1--TEST--
2Bug #50661 (DOMDocument::loadXML does not allow UTF-16).
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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