summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_zero_cidr.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_zero_cidr.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_zero_cidr.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_zero_cidr.phpt b/src/tests/disable_function/disabled_functions_zero_cidr.phpt
new file mode 100644
index 0000000..4e5f930
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_zero_cidr.phpt
@@ -0,0 +1,17 @@
1--TEST--
2Disable functions
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--ENV--
6return <<<EOF
7REMOTE_ADDR=127.0.0.1
8EOF;
9--INI--
10sp.configuration_file={PWD}/config/disabled_functions_zero_cidr.ini
11--FILE--
12<?php
13system("echo 42");
14printf("1337");
15?>
16--EXPECTF--
17Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_zero_cidr.php on line 2 \ No newline at end of file