xref: /PHP-7.4/ext/dom/tests/bug61858.phpt (revision 07340553)
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--EXPECTF--
18object(DOMAttr)#%d (%d) {
19%A
20}
21DOMAttr Object
22(
23%A
24)
25