Req #45196 [Opn->Sus]: Source filters

From: Date: Sat, 17 Oct 2020 13:37:20 +0000
Subject: Req #45196 [Opn->Sus]: Source filters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229688@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=45196&edit=1 ID: 45196 Updated by: cmb@php.net Reported by: timtowdi at yahoo dot com Summary: Source filters -Status: Open +Status: Suspended Type: Feature/Change Request Package: Scripting Engine problem Operating System: All PHP Version: 5.2.6 Block user comment: N Private report: N New Comment: This feature would require discussion on the internals mailing list[1], and likely the RFC process[2]. If you, or anybody else, is still interested in this feature, please forward the request to the internals mailing list. For the time being, I'm suspending this ticket. [1] <https://www.php.net/mailing-lists.php#internals> [2] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2008-06-06 21:53:15] timtowdi at yahoo dot com Description: ------------ It would be immensely useful to have a source filtering capability similar to Perl: http://perldoc.perl.org/perlfilter.html Essentially, a way to allow a special block of code to execute and "filter" through the source code of the script before it is fed through the interpreter. This would allow some very useful features, such as embedding debugging code within comments, and then automatically executing that code if a debugging filter is included into the script. Thus, if the filter is left out, the debugging code remains harmless comments: <?php include('debug.php'); $result = some_convoluted_function(); ### Expected: 106852.244 ### Got: $result ?> This particular kind of example is based off the Perl Smart::Comments module: http://search.cpan.org/search?query=Smart%3A%3AComments&mode=module ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=45196&edit=1

« previous php.bugs (#229688) next »