summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_zero_cidr.phpt
blob: a0bc95c998f3cb647d4603c0f64b31ed99f8c760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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--
Fatal error: [snuffleupagus][127.0.0.1][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_zero_cidr.php on line 2