|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45196 Source filters
Submitted: 2008-06-06 21:53 UTC Modified: 2016-12-31 00:20 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: timtowdi at yahoo dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: 5.2.6 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: timtowdi at yahoo dot com
New email:
PHP Version: OS:


 [2008-06-06 21:53 UTC] timtowdi at yahoo dot com
It would be immensely useful to have a source filtering capability similar to Perl:

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:

$result = some_convoluted_function();
### Expected: 106852.244
### Got: $result

This particular kind of example is based off the Perl Smart::Comments module:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:20 UTC]
-Package: Feature/Change Request +Package: Scripting Engine problem
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC