1--TEST--
2Objects of DOM extension: debug info object handler.
3--EXTENSIONS--
4dom
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);
15var_dump($d);
16?>
17--EXPECTF--
18Deprecated: Creation of dynamic property DOMDocument::$dynamicProperty is deprecated in %s on line %d
19object(DOMDocument)#1 (41) {
20  ["dynamicProperty"]=>
21  object(stdClass)#2 (0) {
22  }
23  ["doctype"]=>
24  NULL
25  ["implementation"]=>
26  string(22) "(object value omitted)"
27  ["documentElement"]=>
28  string(22) "(object value omitted)"
29  ["actualEncoding"]=>
30  NULL
31  ["encoding"]=>
32  NULL
33  ["xmlEncoding"]=>
34  NULL
35  ["standalone"]=>
36  bool(false)
37  ["xmlStandalone"]=>
38  bool(false)
39  ["version"]=>
40  string(3) "1.0"
41  ["xmlVersion"]=>
42  string(3) "1.0"
43  ["strictErrorChecking"]=>
44  bool(true)
45  ["documentURI"]=>
46  string(%d) %s
47  ["config"]=>
48  NULL
49  ["formatOutput"]=>
50  bool(false)
51  ["validateOnParse"]=>
52  bool(false)
53  ["resolveExternals"]=>
54  bool(false)
55  ["preserveWhiteSpace"]=>
56  bool(true)
57  ["recover"]=>
58  bool(false)
59  ["substituteEntities"]=>
60  bool(false)
61  ["firstElementChild"]=>
62  string(22) "(object value omitted)"
63  ["lastElementChild"]=>
64  string(22) "(object value omitted)"
65  ["childElementCount"]=>
66  int(1)
67  ["nodeName"]=>
68  string(9) "#document"
69  ["nodeValue"]=>
70  NULL
71  ["nodeType"]=>
72  int(9)
73  ["parentNode"]=>
74  NULL
75  ["parentElement"]=>
76  NULL
77  ["childNodes"]=>
78  string(22) "(object value omitted)"
79  ["firstChild"]=>
80  string(22) "(object value omitted)"
81  ["lastChild"]=>
82  string(22) "(object value omitted)"
83  ["previousSibling"]=>
84  NULL
85  ["nextSibling"]=>
86  NULL
87  ["attributes"]=>
88  NULL
89  ["isConnected"]=>
90  bool(true)
91  ["ownerDocument"]=>
92  NULL
93  ["namespaceURI"]=>
94  NULL
95  ["prefix"]=>
96  string(0) ""
97  ["localName"]=>
98  NULL
99  ["baseURI"]=>
100  string(%d) %s
101  ["textContent"]=>
102  string(12) "
103    foobar
104"
105}
106