/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/dom/tests/domobject_debug_handler.phpt
105 строк
2 KB
Máté Kocsis
Suppress deprecation notices when ext/dom properties are accessed by the get_debug_info handler (#15530)
23 авг 2024, 11:39
Не верифицирован
23 авг 2024, 11:39
7e45e57
Код
Авторство
О чём код?
--TEST-- Objects of DOM extension: debug info object handler. --EXTENSIONS-- dom --FILE-- <?php $xml = <<<XML <foo> <bar>foobar</bar> </foo> XML; $d = new domdocument; $d->dynamicProperty = new stdclass; $d->loadXML($xml); var_dump($d); ?> --EXPECTF-- Deprecated: Creation of dynamic property DOMDocument::$dynamicProperty is deprecated in %s on line %d object(DOMDocument)#1 (41) { ["dynamicProperty"]=> object(stdClass)#2 (0) { } ["doctype"]=> NULL ["implementation"]=> string(22) "(object value omitted)" ["documentElement"]=> string(22) "(object value omitted)" ["actualEncoding"]=> NULL ["encoding"]=> NULL ["xmlEncoding"]=> NULL ["standalone"]=> bool(false) ["xmlStandalone"]=> bool(false) ["version"]=> string(3) "1.0" ["xmlVersion"]=> string(3) "1.0" ["strictErrorChecking"]=> bool(true) ["documentURI"]=> string(%d) "%s" ["config"]=> NULL ["formatOutput"]=> bool(false) ["validateOnParse"]=> bool(false) ["resolveExternals"]=> bool(false) ["preserveWhiteSpace"]=> bool(true) ["recover"]=> bool(false) ["substituteEntities"]=> bool(false) ["firstElementChild"]=> string(22) "(object value omitted)" ["lastElementChild"]=> string(22) "(object value omitted)" ["childElementCount"]=> int(1) ["nodeName"]=> string(9) "#document" ["nodeValue"]=> NULL ["nodeType"]=> int(9) ["parentNode"]=> NULL ["parentElement"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> string(22) "(object value omitted)" ["lastChild"]=> string(22) "(object value omitted)" ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> NULL ["isConnected"]=> bool(true) ["ownerDocument"]=> NULL ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> NULL ["baseURI"]=> string(%d) %s ["textContent"]=> string(12) " foobar " }