summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_chain.phpt
blob: 757eccf3ce2a31a9e4f036ea493174e14be79399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Disable functions by matching the calltrace
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_chain.ini
--FILE--
<?php 

function outer() {
    function inner() {
        echo "I'm in the inner function!\n";
    }
    echo "I'm in the outer function, before the call!\n";
    inner();
    echo "I'm in the outer function, after the call!\n";
}

echo "I'm before the call to outer\n";
outer();
echo "I'm after the call to outer\n";
?>
--EXPECTF--
I'm before the call to outer
I'm in the outer function, before the call!

Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain.php on line 5