diff options
| author | xXx-caillou-xXx | 2017-12-20 18:09:53 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-20 18:09:53 +0100 |
| commit | e7f541396715ee2895abcf73044b91ae9b746201 (patch) | |
| tree | ba0e9765e7f14f04b92585df1f3fcd1830ab4b00 /src/tests/config/disabled_function_local_var.ini | |
| parent | 8d6cc4f2b63c3f0dc31fe6cecd34ac023ea1cccb (diff) | |
Better parsing of the rules
Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.
Diffstat (limited to 'src/tests/config/disabled_function_local_var.ini')
| -rw-r--r-- | src/tests/config/disabled_function_local_var.ini | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/config/disabled_function_local_var.ini b/src/tests/config/disabled_function_local_var.ini index cba2ae3..3d553c0 100644 --- a/src/tests/config/disabled_function_local_var.ini +++ b/src/tests/config/disabled_function_local_var.ini | |||
| @@ -1,2 +1,10 @@ | |||
| 1 | sp.disable_function.function("phpinfo").var("b").value("1337").drop(); | 1 | sp.disable_function.function("phpinfo").var("$b").value("1337").drop(); |
| 2 | sp.disable_function.function("strlen").var("a").value("1337").drop(); | 2 | sp.disable_function.function("strlen").var("$a").value("1337").drop(); |
| 3 | sp.disable_function.function("strlen").var("$a['123']").value("block").drop(); | ||
| 4 | sp.disable_function.function("strlen").var("$a[$c]->prop").value("block").drop(); | ||
| 5 | sp.disable_function.function("strlen").var("$a->zxc").value("not a good value").drop(); | ||
| 6 | sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE['constant']").value("no good").drop(); | ||
| 7 | sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE").value("qwerty").drop(); | ||
| 8 | sp.disable_function.function("strlen").var("\\qwe\\ASD").value("qwerty").drop(); | ||
| 9 | sp.disable_function.function("strlen").var("\\qwe\\QWE['123']").value("asdfgh").drop(); | ||
| 10 | sp.disable_function.function("strlen").var("$qwe").value("block this").drop(); | ||
