summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_chain_call_skip.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-02-16 11:16:59 +0100
committerBen Fuhrmannek2021-02-16 11:16:59 +0100
commit5484bcb5eb2714e7438927e2566c86a74d7c51af (patch)
treeb78326d2999397be4c08e06b23209981f82a4ea9 /src/tests/disable_function/disabled_functions_chain_call_skip.phpt
parent7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (diff)
parentcecfdd808da67be908dbe7144cc8c74dfb3f855e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/tests/disable_function/disabled_functions_chain_call_skip.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_chain_call_skip.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_chain_call_skip.phpt b/src/tests/disable_function/disabled_functions_chain_call_skip.phpt
new file mode 100644
index 0000000..267b691
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_chain_call_skip.phpt
@@ -0,0 +1,29 @@
1--TEST--
2Disable functions by matching the calltrace, with a superfluous function in between
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_disabled_functions_chain_call_skip.ini
7--FILE--
8<?php
9
10function a() {
11 echo "I'm in the `a` function!\n";
12 b();
13}
14function b() {
15 echo "I'm in the `b` function!\n";
16 c();
17}
18function c() {
19 echo "I'm in the `c` function!\n";
20}
21
22a();
23?>
24--EXPECTF--
25I'm in the `a` function!
26I'm in the `b` function!
27
28Warning: [snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'a>c' in %s/tests/disable_function/disabled_functions_chain_call_skip.php on line 12
29I'm in the `c` function!