Req #48527 [Opn->Csd]: DOM XML classes do not expose properties to Reflection

From: Date: Sun, 22 Sep 2019 22:05:11 +0000
Subject: Req #48527 [Opn->Csd]: DOM XML classes do not expose properties to Reflection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222872@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48527&edit=1 ID: 48527 Updated by: beberlei@php.net Reported by: dt at crystalcc dot com Summary: DOM XML classes do not expose properties to Reflection -Status: Open +Status: Closed Type: Feature/Change Request Package: DOM XML related Operating System: Linux, QNX PHP Version: 5.2.9 -Assigned To: +Assigned To: beberlei Block user comment: N Private report: N New Comment: This was fixed in a recent version of PHP. For 7.1 and up at least the output is correct. Previous Comments: ------------------------------------------------------------------------ [2013-08-28 08:13:43] Laurent dot Lyaudet at gmail dot com Related To: Bug #65565 ------------------------------------------------------------------------ [2011-11-28 09:16:46] questionsofscience at gmail dot com An even easier way to test this: $xml = '<root><element>value</element></root>'; $document = new DOMDocument(); $document->loadXML($xml); var_dump($document); print_r($document, true); ------------------------------------------------------------------------ [2009-06-11 15:06:09] dt at crystalcc dot com Related Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=171970 ------------------------------------------------------------------------ [2009-06-11 11:42:45] dt at crystalcc dot com Description: ------------ None of DOM XML internal objects expose the class properties to Reflection* objects. This breaks PHP code assist for these objects in Eclipse PDT. Reproduce code: --------------- <?php ReflectionClass::export('DOMDocument'); ?> Expected result: ---------------- Class [ <internal:dom> class DOMDocument extends DOMNode ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [14] { [ list of properties ] } Actual result: -------------- Class [ <internal:dom> class DOMDocument extends DOMNode ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=48527&edit=1

« previous php.bugs (#222872) next »