summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_echo.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_function_echo.phpt')
-rw-r--r--src/tests/disable_function/disabled_function_echo.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_function_echo.phpt b/src/tests/disable_function/disabled_function_echo.phpt
new file mode 100644
index 0000000..21e2002
--- /dev/null
+++ b/src/tests/disable_function/disabled_function_echo.phpt
@@ -0,0 +1,19 @@
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($a) {
10 print "$a";
11}
12echo "qwe";
13test("rty");
14test("oops");
15?>
16--CLEAN--
17--EXPECTF--
18qwerty
19Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_echo.php on line 3 \ No newline at end of file