summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_cidr.phpt
blob: b26533f39a86c5e985acb1bd19d339c6d44db02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--ENV--
return <<<EOF
REMOTE_ADDR=127.0.0.1
EOF;
--INI--
sp.configuration_file={PWD}/config/disabled_functions_cidr.ini
--FILE--
<?php
system("echo 42");
?>
--EXPECTF--
Fatal error: [snuffleupagus][127.0.0.1][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_cidr.php on line 2