diff options
| author | xXx-caillou-xXx | 2018-07-13 11:38:51 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-13 09:38:51 +0000 |
| commit | 94649dee9e8b8b6c6c28b79d565ae7b388e3d6d9 (patch) | |
| tree | 106df2ad6824ec1c352fd57f577372778e64385b /src/tests/disabled_function_echo_local_var.phpt | |
| parent | 7963580d72a358975133f86f01de2d2eab08ba38 (diff) | |
Allow rules matching on echo and print
Diffstat (limited to 'src/tests/disabled_function_echo_local_var.phpt')
| -rw-r--r-- | src/tests/disabled_function_echo_local_var.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/disabled_function_echo_local_var.phpt b/src/tests/disabled_function_echo_local_var.phpt new file mode 100644 index 0000000..bfa3c8c --- /dev/null +++ b/src/tests/disabled_function_echo_local_var.phpt | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | --TEST-- | ||
| 2 | Echo hooking | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_function_echo.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function test() { | ||
| 10 | print "3\n"; | ||
| 11 | } | ||
| 12 | $abc = 1; | ||
| 13 | test(); | ||
| 14 | $abc = 123; | ||
| 15 | test(); | ||
| 16 | ?> | ||
| 17 | --CLEAN-- | ||
| 18 | --EXPECTF-- | ||
| 19 | 3 | ||
| 20 | [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_echo_local_var.php:3. | ||
