Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse complex configs using PHP tokenizer
Implements 2 classes to parse 'complex' config options in admin Configuration Report page using PHP tokenizer instead of relying on regular expressions. - Tokenizer calls token_get_all() to build a list of tokens from the given code - Parser uses a Tokenizer object to convert the code (string) to an actual PHP array variable Includes PHPUnit test cases for the new parser code. Fixes #20787, #20812, #20813, #20850, #20851, #16931, #16932 PR #761
- Loading branch information
Showing
7 changed files
with
915 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.