# Some kind of Reflection_Property::getLine() ?

- Thread: https://externals.io/message/6268
- Original archive: https://news-web.php.net/php.internals/6268
- Started by Johannes Schlueter on 2003-12-07T13:25:43+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6268 — Johannes Schlueter — 2003-12-07T13:25:43+00:00

URL: https://externals.io/message/6268#6268

Hi,

I've spent some time playing around with the reflection API. For testing 
it I wrote an extended syntax highlighter (if you like very ugly PHP 
source you can have a look at [1]) Now I'm missing a method like
   public int Reflection_Property::getLine()
which acts something like the 
Reflection_[Class|Function|Method]::getStartLine and returns the line 
number where a property was defined (a getStartLine() and a getEndLine() 
would work, too but imho for properties a single line would be enough). 
Since I neither know the Zend Engine internals nor C well I can't see 
wether this method can be implemented easily - but if I would realy like 
to have it within Beta 3 (so it can be part of PHP5.0.0).

johannes

[1] http://schlueters.de:8000/phpstuff/php5/prepend.php
