Req #65102 [Opn->Wfx]: Provide a method to extract the source code of reflected class or method easily

From: Date: Mon, 01 Feb 2021 16:07:49 +0000
Subject: Req #65102 [Opn->Wfx]: Provide a method to extract the source code of reflected class or method easily
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231872@lists.php.net to get a copy of this message
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)

« previous php.bugs (#231872) next »