1--TEST--
2Manually call __construct() - document variation
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$doc = new DOMDocument();
9$doc->loadXML('<?xml version="1.0"?><foo/>');
10$doc->__construct("1.1", "UTF-8");
11echo $doc->saveXML();
12
13?>
14--EXPECT--
15<?xml version="1.1" encoding="UTF-8"?>
16