summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_native_functions_indirect.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_native_functions_indirect.phpt')
-rw-r--r--src/tests/disable_function/disabled_native_functions_indirect.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_native_functions_indirect.phpt b/src/tests/disable_function/disabled_native_functions_indirect.phpt
new file mode 100644
index 0000000..ba355d6
--- /dev/null
+++ b/src/tests/disable_function/disabled_native_functions_indirect.phpt
@@ -0,0 +1,12 @@
1--TEST--
2Disabled native functions, called indirectly
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_functions.ini
7--FILE--
8<?php
9array_map('system', [1,2,3,4]);
10?>
11--EXPECTF--
12Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_native_functions_indirect.php on line 2 \ No newline at end of file