Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81550 invoked by uid 1010); 7 Dec 2003 13:26:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81480 invoked from network); 7 Dec 2003 13:26:47 -0000 Received: from unknown (HELO mail.netbeat.de) (62.208.140.19) by pb1.pair.com with SMTP; 7 Dec 2003 13:26:47 -0000 Received: (qmail 8795 invoked from network); 7 Dec 2003 13:27:54 -0000 Received: from pd9ebefd8.dip.t-dialin.net (HELO schlueters.de) (217.235.239.216) by mail.netbeat.de with SMTP; 7 Dec 2003 13:27:54 -0000 Message-ID: <3FD32A57.3040603@schlueters.de> Date: Sun, 07 Dec 2003 14:25:43 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Some kind of Reflection_Property::getLine() ? From: johannes@schlueters.de (Johannes Schlueter) 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