summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_echo_local_var.phpt
blob: a614f1f34a1e0b36a87fc04554bf5ed627c4f9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Echo hooking
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "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][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_local_var.php on line 3