blob: fd07225fddd08f2b2955bc2ed38272c9c0989963 (
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, with call_user_func involved
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_chain_call_user_func.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";
call_user_func("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] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain_call_user_func.php on line 5
|