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 (39) { 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 ["childNodes"]=> 76 string(22) "(object value omitted)" 77 ["firstChild"]=> 78 string(22) "(object value omitted)" 79 ["lastChild"]=> 80 string(22) "(object value omitted)" 81 ["previousSibling"]=> 82 NULL 83 ["nextSibling"]=> 84 NULL 85 ["attributes"]=> 86 NULL 87 ["ownerDocument"]=> 88 NULL 89 ["namespaceURI"]=> 90 NULL 91 ["prefix"]=> 92 string(0) "" 93 ["localName"]=> 94 NULL 95 ["baseURI"]=> 96 string(%d) %s 97 ["textContent"]=> 98 string(12) " 99 foobar 100" 101} 102