php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51646 ReflectionClass didn't show $length property from DOMNodeList
Submitted: 2010-04-23 14:56 UTC Modified: 2010-04-23 15:48 UTC
From: oleg at elifantiev dot ru Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.13 OS:
Private report: No CVE-ID: None
 [2010-04-23 14:56 UTC] oleg at elifantiev dot ru
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 ]
      }
    }
  }
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-23 15:48 UTC] rrichards@php.net
-Status: Open +Status: Bogus
 [2010-04-23 15:48 UTC] rrichards@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

duplicate of bug #48527
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 19:01:25 2020 UTC