diff options
| author | Stefan Esser | 2010-02-21 11:44:54 +0100 |
|---|---|---|
| committer | Stefan Esser | 2010-02-21 11:44:54 +0100 |
| commit | 36dbfacbe64697d959f524e537b15b73c090d898 (patch) | |
| tree | f1c7ce1409b0e7765fc72d550546967fcf0f9717 /tests/filter | |
Inital commit
Diffstat (limited to 'tests/filter')
| -rw-r--r-- | tests/filter/get_globals.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/filter/get_globals.phpt b/tests/filter/get_globals.phpt new file mode 100644 index 0000000..f16991b --- /dev/null +++ b/tests/filter/get_globals.phpt | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: GLOBALS in GET | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.syslog=0 | ||
| 7 | suhosin.log.sapi=255 | ||
| 8 | suhosin.log.script=255 | ||
| 9 | suhosin.log.script.name=/tmp/xx | ||
| 10 | --GET-- | ||
| 11 | a=1&b=2&GLOBALS=123&c=3 | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | var_dump($_GET['a']); | ||
| 15 | var_dump($_GET['b']); | ||
| 16 | var_dump($_GET['c']); | ||
| 17 | if (!isset($_GET['GLOBALS'])) var_dump(5); | ||
| 18 | else var_dump(0); | ||
| 19 | ?> | ||
| 20 | --EXPECT-- | ||
| 21 | string(1) "1" | ||
| 22 | string(1) "2" | ||
| 23 | string(1) "3" | ||
| 24 | int(5) | ||
