summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_param_pos2.phpt
blob: fd58ffc2bab61f9cc0f78cca0e3db8019f377f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Disable functions - match on argument's position, not the first time
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_pos.ini
--FILE--
<?php 
strlen("od");
strlen("id");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'strlen' in %a/disabled_functions_param_pos2.php:3 has been disabled, because its argument 'str' content (id) matched the rule 'strlen array'.