summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-12-14 15:25:31 +0100
committerBen Fuhrmannek2021-12-14 15:25:31 +0100
commitc3fddfecfab29504097932184389a94251991bc7 (patch)
treeaed5a7cf688c743ca9cb6e26cfbfe1e3b8fd9113 /src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt
parenta5dcbb8cb802ba18e618ca38ea8e6acbf8b133ff (diff)
test cases for testing edge cases, eval and cmd execution
Diffstat (limited to 'src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt b/src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt
new file mode 100644
index 0000000..347101e
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_phpinfo_header_callback.phpt
@@ -0,0 +1,12 @@
1--TEST--
2Disable functions - phpinfo via header_register_callback
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_functions_extra.ini
7--FILE--
8<?php
9header_register_callback('phpinfo');
10?>
11--EXPECTF--
12Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'phpinfo' in Unknown on line 0