Edit report at http://bugs.php.net/bug.php?id=40457&edit=1

 ID:                 40457
 Comment by:         rasmus at mindplay dot dk
 Reported by:        ralph at smashlabs dot com
 Summary:            ReflectionProperty lacks method getStartLine() /
                     getEndLine()
 Status:             Open
 Type:               Feature/Change Request
 Package:            Feature/Change Request
 Operating System:   Linux 2.6
 PHP Version:        5.2.1
 Block user comment: N

 New Comment:

Yes, this is missing for me too. Badly.



Trying to work around this by manually scanning the source code for the
property definition would be a huuuge PITA... :-(


Previous Comments:
------------------------------------------------------------------------
[2007-02-13 04:40:08] ralph at smashlabs dot com

Description:
------------
Simply put, when getting a property (in the same manner as a method)
from a class, ReflectionProperty lacks the ability (as does the
ReflectionClass) to retrieve a line number from where the property was
defined.



  - Properties [1] {

    Property [ <default> protected $_Id ]

  }



  - Methods [3] {

    Method [ <user, overwrites Submission> public method get ] {

      @@
/home/webdeveloper/vhosts/zdiis2.dev/development/modeling/models/ZDISubmission.php
11 - 14



      - Parameters [1] {

        Parameter #0 [ <optional> $identifiers = Array ]

      }

    }



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=40457&edit=1

Reply via email to