note 64012 added to function.print-r
| From: | sanyaathikdothu at osu1 dot php dot net | Date: | Wed, 05 Apr 2006 14:13:39 +0000 |
| Subject: | note 64012 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107385@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 195.228.154.4
Probable Submitter: 193.225.127.130 (proxied: 1.0 SZECHENYI)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- http://master.php.net/note/edit/64012
Del: integrated -- http://master.php.net/note/delete/64012/integrated
Del: useless -- http://master.php.net/note/delete/64012/useless
Del: bad code -- http://master.php.net/note/delete/64012/bad+code
Del: spam -- http://master.php.net/note/delete/64012/spam
Del: non-english -- http://master.php.net/note/delete/64012/non-english
Del: in docs -- http://master.php.net/note/delete/64012/in+docs
Del: other reasons-- http://master.php.net/note/delete/64012
Reject -- http://master.php.net/note/reject/64012
Search -- http://master.php.net/manage/user-notes.php