summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_param_array.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disabled_functions_param_array.phpt')
-rw-r--r--src/tests/disabled_functions_param_array.phpt16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/tests/disabled_functions_param_array.phpt b/src/tests/disabled_functions_param_array.phpt
index 4738745..8fb75e1 100644
--- a/src/tests/disabled_functions_param_array.phpt
+++ b/src/tests/disabled_functions_param_array.phpt
@@ -11,21 +11,31 @@ function foo($arr) {
11} 11}
12$a=Array("a"=>"test1"); 12$a=Array("a"=>"test1");
13foo($a); 13foo($a);
14$a=Array("a"=>"abcd"); 14
15foo($a);
16$a=Array("a"=>"abcde"); 15$a=Array("a"=>"abcde");
17foo($a); 16foo($a);
17
18$a=Array("a"=>"abcd");
19foo($a);
20/*
21
18$a=Array("bla"=>"abcdef"); 22$a=Array("bla"=>"abcdef");
19foo($a); 23foo($a);
24
20$a=Array("bla"=>"aaa", "a"=>"eee" ); 25$a=Array("bla"=>"aaa", "a"=>"eee" );
21foo($a); 26foo($a);
27
22$a=Array("test"=>"aaa", "a"=>"fff" ); 28$a=Array("test"=>"aaa", "a"=>"fff" );
23foo($a); 29foo($a);
30
24$a=Array("test2"=>Array("foo"=>Array("lol"=>"bbb")), "a"=>"cccc"); 31$a=Array("test2"=>Array("foo"=>Array("lol"=>"bbb")), "a"=>"cccc");
25foo($a); 32foo($a);
33
26$a=Array("test2"=>Array("foo"=>Array("lol"=>"aaa")), "a"=>"dddd"); 34$a=Array("test2"=>Array("foo"=>Array("lol"=>"aaa")), "a"=>"dddd");
27foo($a); 35foo($a);
36 */
28?> 37?>
29--EXPECTF-- 38--EXPECTF--
30test1 39test1
31[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'foo' in %a/disabled_functions_param_array.php:3 has been disabled, because its argument 'arr' content (Array) matched the rule '1'. \ No newline at end of file 40abcde
41[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'foo' in %a/disabled_functions_param_array.php:3 has been disabled, because its argument 'arr' content (Array) matched the rule '1'.