Req #65102 [Opn->Wfx]: Provide a method to extract the source code of reflected class or method easily
Edit report at https://bugs.php.net/bug.php?id=65102&edit=1
ID: 65102
Updated by: cmb@php.net
Reported by: knight at kopernet dot org
Summary: Provide a method to extract the source code of
reflected class or method easily
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Reflection related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This doesn't look like something that should go into php-src,
since it is a rather special feature. If you strongly feel that
this feature should be added, please pursue the RFC process[1].
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2013-06-23 08:55:19] knight at kopernet dot org
Description:
------------
I have trouble to extract source of a method or a class easily if the source code is not well
formatted.
If the code is well formatted it's easy to extract the source because I can use:
public int ReflectionFunctionAbstract::getStartLine ( void ) and
public int ReflectionFunctionAbstract::getEndLine ( void ).
But if the source is all in one line the amount of work that is needed to extract the source is
overwhelming. Perhaps to do it really robust and realiable I'd have to use the tokenizer
extension.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65102&edit=1
Thread (2 messages)