note 64012 deleted from function.print-r by peehaa
| From: | peehaa@php.net | Date: | Fri, 12 Jul 2013 16:23:30 +0000 |
| Subject: | note 64012 deleted from function.print-r by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195591@lists.php.net to get a copy of this message | ||
Note Submitter: sanya at hik dot hu
----
I find a possibly bug, when I wanted to print the structure of a DOMDocument or a DOMDocumentType
object.
print_r() outputs the object type correctly, but the properties are missing.
$doc = $imp->createDocument();
$doc->loadXML($xmlString);
print_r($doc->doctype);
the code outputs:
DOMDocumentType Object
(
)
But the subobjects of $doc->doctype exist.