mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
It seems fair to remove this warning, given that: * it is not documented in the official documentation * the $specified property, which has a similar 'not implemented' status, also does not trigger a warning * it apparently hinders quite a lot of people during debugging, judging by the number of votes on the bug
25 lines
399 B
PHP
25 lines
399 B
PHP
--TEST--
|
|
Bug #61858 DOMAttr debug info generates E_WARNING
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$doc = new DOMDocument();
|
|
$doc->loadXML('<example a="b">Test</example>');
|
|
|
|
$example = $doc->getElementsByTagName('example')->item(0);
|
|
$attr = $example->getAttributeNode('a');
|
|
|
|
var_dump($attr);
|
|
print_r($attr);
|
|
--EXPECTF--
|
|
object(DOMAttr)#%d (%d) {
|
|
%A
|
|
}
|
|
DOMAttr Object
|
|
(
|
|
%A
|
|
)
|