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