summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_echo_local_var.phpt
diff options
context:
space:
mode:
authorxXx-caillou-xXx2018-07-13 11:38:51 +0200
committerjvoisin2018-07-13 09:38:51 +0000
commit94649dee9e8b8b6c6c28b79d565ae7b388e3d6d9 (patch)
tree106df2ad6824ec1c352fd57f577372778e64385b /src/tests/disabled_function_echo_local_var.phpt
parent7963580d72a358975133f86f01de2d2eab08ba38 (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.phpt20
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--
2Echo hooking
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_function_echo.ini
7--FILE--
8<?php
9function test() {
10 print "3\n";
11}
12$abc = 1;
13test();
14$abc = 123;
15test();
16?>
17--CLEAN--
18--EXPECTF--
193
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.