summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_cidr_6.phpt
blob: 914cd35c3317c1a0be5c55174d0b069f3f9149e8 (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=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] Aborted execution on call of the function 'strpos' in %a/disabled_functions_cidr_6.php on line 2