summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_echo.phpt
blob: a884e4a00ba68b60342fed505ed3ff02026b2560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Echo hooking
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_echo.ini
--FILE--
<?php 
function test($a) {
  print "$a";
}
echo "qwe";
test("rty");
test("oops");
?>
--CLEAN--
--EXPECTF--
qwerty[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_echo.php:3.