blob: 3a0400a2acbf281d1491b8613fe2ed25a69108a4 (
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
28
|
--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!
I'm in the inner function!
I'm in the outer function, after the call!
I'm after the call to outer
|