blob: d681b3edf7af6d8a4ce109f84b5da4bb854637d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_param_int.ini
--FILE--
<?php
function foobar($id) {
echo $id."\n";
}
foobar(1);
foobar(42);
foobar(1337);
foobar(13374242);
foobar(0x2A);
foobar("10");
?>
--EXPECTF--
1
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foobar', because its argument '$id' content (42) matched a rule in %a/disabled_functions_param_int.php on line 3
|