blob: 31b3f33f48d55d368e6cb3f1beb71244a94e1a2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
Disable functions with excess arguments
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_excess_args.ini
--FILE--
<?php
function foo_excess_args($name, $greeting='HI!', $color='red') {
echo "boo\n";
}
foo_excess_args("bob", "hi", "green", "blubb");
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo_excess_args' in %s.php on line %d
|