Annotation of embedaddon/php/ext/dom/tests/bug50661.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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);
! 11: echo $dom->saveXML();
! 12:
! 13: ?>
! 14: --EXPECT--
! 15: <?xml version="1.0"?>
! 16: <foo/>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>