1--TEST-- 2Bug #61858 DOMAttr debug info generates E_WARNING 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7$doc = new DOMDocument(); 8$doc->loadXML('<example a="b">Test</example>'); 9 10$example = $doc->getElementsByTagName('example')->item(0); 11$attr = $example->getAttributeNode('a'); 12 13var_dump($attr); 14print_r($attr); 15?> 16--EXPECTF-- 17object(DOMAttr)#%d (%d) { 18%A 19} 20DOMAttr Object 21( 22%A 23) 24