Bug #51646 [NEW]: ReflectionClass didn't show $length property from DOMNodeList
| From: | oleg at elifantiev dot ru | Date: | Fri, 23 Apr 2010 12:56:10 +0000 |
| Subject: | Bug #51646 [NEW]: ReflectionClass didn't show $length property from DOMNodeList | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-149814@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.2.13
Package: Class/Object related
Bug Type: Bug
Bug description:ReflectionClass didn't show $length property from DOMNodeList
Description:
------------
Reflection didn't show all information on some php-internal classes (i.e.
DOMNodeList).
It hides some properties (i.e. DOMNodeList::$lenght)
Test script:
---------------
<?
$dt = new ReflectionClass("DOMNodeList");
echo $dt;
?>
Expected result:
----------------
Class [ <internal:dom> <iterateable> class DOMNodeList ] {
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
// want to see $length property here
}
- Methods [1] {
Method [ <internal:dom> public method item ] {
- Parameters [1] {
Parameter #0 [ <required> $index ]
}
}
}
}
Actual result:
--------------
Class [ <internal:dom> <iterateable> class DOMNodeList ] {
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [1] {
Method [ <internal:dom> public method item ] {
- Parameters [1] {
Parameter #0 [ <required> $index ]
}
}
}
}
--
Edit bug report at http://bugs.php.net/bug.php?id=51646&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51646&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51646&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51646&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51646&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51646&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51646&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51646&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51646&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51646&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51646&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51646&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51646&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51646&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51646&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51646&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51646&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51646&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51646&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51646&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51646&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51646&r=mysqlcfg