summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/config/disabled_function_local_var.ini
diff options
context:
space:
mode:
authorjvoisin2019-02-23 12:06:51 +0100
committerjvoisin2019-02-23 12:12:45 +0100
commitd03c3c8d01f6f507bf844fec07477f30e3db61d9 (patch)
tree040773d005257a0541da580c26bbb2b0831155b2 /src/tests/disable_function/config/disabled_function_local_var.ini
parenta48297dfc1144931e18073a87ed83ea337e3d37a (diff)
Fix the testsuite on php8.
In php8, it's non-trivial to hook strlen, since this function is usually optimized away by the compiler.
Diffstat (limited to 'src/tests/disable_function/config/disabled_function_local_var.ini')
-rw-r--r--src/tests/disable_function/config/disabled_function_local_var.ini18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/disable_function/config/disabled_function_local_var.ini b/src/tests/disable_function/config/disabled_function_local_var.ini
index 3d553c0..81b6771 100644
--- a/src/tests/disable_function/config/disabled_function_local_var.ini
+++ b/src/tests/disable_function/config/disabled_function_local_var.ini
@@ -1,10 +1,10 @@
1sp.disable_function.function("phpinfo").var("$b").value("1337").drop(); 1sp.disable_function.function("phpinfo").var("$b").value("1337").drop();
2sp.disable_function.function("strlen").var("$a").value("1337").drop(); 2sp.disable_function.function("strtoupper").var("$a").value("1337").drop();
3sp.disable_function.function("strlen").var("$a['123']").value("block").drop(); 3sp.disable_function.function("strtoupper").var("$a['123']").value("block").drop();
4sp.disable_function.function("strlen").var("$a[$c]->prop").value("block").drop(); 4sp.disable_function.function("strtoupper").var("$a[$c]->prop").value("block").drop();
5sp.disable_function.function("strlen").var("$a->zxc").value("not a good value").drop(); 5sp.disable_function.function("strtoupper").var("$a->zxc").value("not a good value").drop();
6sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE['constant']").value("no good").drop(); 6sp.disable_function.function("strtoupper").var("\\asd\\test_object::TEST_VALUE['constant']").value("no good").drop();
7sp.disable_function.function("strlen").var("\\asd\\test_object::TEST_VALUE").value("qwerty").drop(); 7sp.disable_function.function("strtoupper").var("\\asd\\test_object::TEST_VALUE").value("qwerty").drop();
8sp.disable_function.function("strlen").var("\\qwe\\ASD").value("qwerty").drop(); 8sp.disable_function.function("strtoupper").var("\\qwe\\ASD").value("qwerty").drop();
9sp.disable_function.function("strlen").var("\\qwe\\QWE['123']").value("asdfgh").drop(); 9sp.disable_function.function("strtoupper").var("\\qwe\\QWE['123']").value("asdfgh").drop();
10sp.disable_function.function("strlen").var("$qwe").value("block this").drop(); 10sp.disable_function.function("strtoupper").var("$qwe").value("block this").drop();