summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_cidr_6.phpt
blob: 0153cc52ccf3be2a6b58cb71993ce1296633b5c5 (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")) print "skip"; ?>
--ENV--
return <<<EOF
REMOTE_ADDR=2001:0db8:f000:f000:f000:ff00:0042:8328
EOF;
--INI--
sp.configuration_file={PWD}/config/disabled_functions_cidr.ini
--FILE--
<?php
strpos("a", "b");
printf(1337);
?>
--EXPECTF--
Fatal error: [snuffleupagus][2001:0db8:f000:f000:f000:ff00:0042:8328][disabled_function][drop] Aborted execution on call of the function 'strpos' in %a/disabled_functions_cidr_6.php on line 2