xref: /PHP-8.0/ext/dom/tests/bug61858.phpt (revision 7aacc705)
1--TEST--
2Bug #61858 DOMAttr debug info generates E_WARNING
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9$doc = new DOMDocument();
10$doc->loadXML('<example a="b">Test</example>');
11
12$example = $doc->getElementsByTagName('example')->item(0);
13$attr    = $example->getAttributeNode('a');
14
15var_dump($attr);
16print_r($attr);
17?>
18--EXPECTF--
19object(DOMAttr)#%d (%d) {
20%A
21}
22DOMAttr Object
23(
24%A
25)
26