From: takacsz at hik dot hu Operating system: windows xp PHP version: 5.1.2 PHP Bug Type: DOM XML related Bug description: print_r doesn't show DOM Objects properties
Description: ------------ 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. Reproduce code: --------------- <?php $doc = new DOMDocument(); $doc->loadXML('<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE book PUBLIC "-//EDUCATIO Kht.//DocBook V4.3-alapu DTD V1.1//HU" "http://www.hik.hu/tankonyvpalyazat/dtd2/tankonyv.dtd"><book></book>'); print_r($doc->doctype); ?> Expected result: ---------------- something like that: DOMDocumentType Object ( publicId systemId name entities notations internalSubset ) Actual result: -------------- DOMDocumentType Object ( ) -- Edit bug report at http://bugs.php.net/?id=36987&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36987&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36987&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36987&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36987&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36987&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36987&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36987&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36987&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36987&r=support Expected behavior: http://bugs.php.net/fix.php?id=36987&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36987&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36987&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36987&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36987&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36987&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36987&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36987&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36987&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36987&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36987&r=mysqlcfg