Edit report at https://bugs.php.net/bug.php?id=48527&edit=1
ID: 48527
Comment by: questionsofscience at gmail dot com
Reported by: dt at crystalcc dot com
Summary: DOM XML classes do not expose properties to
Reflection
Status: Open
Type: Bug
Package: DOM XML related
Operating System: Linux, QNX
PHP Version: 5.2.9
Block user comment: N
Private report: N
New Comment:
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);
Previous Comments:
------------------------------------------------------------------------
[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