summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_param_int.phpt
blob: 6c04849ca38159114ea9d94a4d396970a0641d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) 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