1--TEST--
2Objects of DOM extension: debug info object handler.
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$xml = <<<XML
8<foo>
9    <bar>foobar</bar>
10</foo>
11XML;
12$d = new domdocument;
13$d->dynamicProperty = new stdclass;
14$d->loadXML($xml);
15print_r($d);
16?>
17--EXPECTF--
18DOMDocument Object
19(
20    [dynamicProperty] => stdClass Object
21        (
22        )
23
24    [doctype] =>
25    [implementation] => (object value omitted)
26    [documentElement] => (object value omitted)
27    [actualEncoding] =>
28    [encoding] =>
29    [xmlEncoding] =>
30    [standalone] => 1
31    [xmlStandalone] => 1
32    [version] => 1.0
33    [xmlVersion] => 1.0
34    [strictErrorChecking] => 1
35    [documentURI] => %s
36    [config] =>
37    [formatOutput] =>
38    [validateOnParse] =>
39    [resolveExternals] =>
40    [preserveWhiteSpace] => 1
41    [recover] =>
42    [substituteEntities] =>
43    [firstElementChild] => (object value omitted)
44    [lastElementChild] => (object value omitted)
45    [childElementCount] => 1
46    [nodeName] => #document
47    [nodeValue] =>
48    [nodeType] => 9
49    [parentNode] =>
50    [childNodes] => (object value omitted)
51    [firstChild] => (object value omitted)
52    [lastChild] => (object value omitted)
53    [previousSibling] =>
54    [nextSibling] =>
55    [attributes] =>
56    [ownerDocument] =>
57    [namespaceURI] =>
58    [prefix] =>
59    [localName] =>
60    [baseURI] => %s
61    [textContent] =>
62    foobar
63
64)
65