summaryrefslogtreecommitdiff
path: root/tests/filter/get_filter_2.phpt
blob: 1e5d04cd1510202585ae614253a264b56198cbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--TEST--
suhosin GET filter (suhosin.get.max_vars)
--INI--
suhosin.log.syslog=0
suhosin.log.sapi=0
suhosin.log.script=0
suhosin.log.file=255
suhosin.log.file.time=0
suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp
auto_append_file={PWD}/suhosintest.$$.log.tmp
suhosin.get.max_vars=5
--SKIPIF--
<?php include('../skipif.inc'); ?>
--COOKIE--
--GET--
A=A&B=B&C=C&D=D&E=E&F=F&G=G&
--POST--
--FILE--
<?php
var_dump($_GET);
?>
--EXPECTF--
array(5) {
  ["A"]=>
  string(1) "A"
  ["B"]=>
  string(1) "B"
  ["C"]=>
  string(1) "C"
  ["D"]=>
  string(1) "D"
  ["E"]=>
  string(1) "E"
}
ALERT - configured GET variable limit exceeded - dropped variable 'F' - all further GET variables are dropped (attacker 'REMOTE_ADDR not set', file '%s')
ALERT - dropped 2 request variables - (2 in GET, 0 in POST, 0 in COOKIE) %s