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