summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_echo_local_var.phpt
blob: 300f38e3c5bfc8b25cebc5345a4e15e3cb1d87cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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() {
  print "3\n";
}
$abc = 1;
test();
$abc = 123;
test();
?>
--CLEAN--
--EXPECTF--
3

Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_local_var.php on line 3