summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_zero_cidr.phpt
blob: 35d187a9e98450a4362ccba61f043c668c6ebc33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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_zero_cidr.ini
--FILE--
<?php
system("echo 42");
printf("1337");
?>
--EXPECTF--
[snuffleupagus][127.0.0.1][disabled_function][drop] The call to the function 'system' in %a/tests/disabled_functions_zero_cidr.php:2 has been disabled.
1337