Some kind of Reflection_Property::getLine() ?

From: Date: Sun, 07 Dec 2003 13:25:43 +0000
Subject: Some kind of Reflection_Property::getLine() ?
Groups: php.internals 
Request: Send a blank email to internals+get-6268@lists.php.net to get a copy of this message
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

« previous php.internals (#6268) next »