diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-04-06 14:37:49 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-04-06 14:37:49 +0200 |
commit | 7b10b0041aa63c6f8990ceb3ccc190bdd9eea2b9 (patch) | |
tree | 01edb9389d7b7f6b277a57e2bce1d05f9748d609 /tests | |
parent | 096b2f823b2273e3ee707b3805feb78d1e4be61d (diff) | |
download | php-7b10b0041aa63c6f8990ceb3ccc190bdd9eea2b9.tar.gz |
Imported Upstream version 5.4.1~rc1upstream/5.4.1_rc1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/022.phpt | 1 | ||||
-rw-r--r-- | tests/basic/023.phpt | 1 | ||||
-rw-r--r-- | tests/basic/bug61000.phpt | 19 | ||||
-rw-r--r-- | tests/lang/bug24054.phpt | 2 |
4 files changed, 22 insertions, 1 deletions
diff --git a/tests/basic/022.phpt b/tests/basic/022.phpt index 64314ee9e..0ab70d4be 100644 --- a/tests/basic/022.phpt +++ b/tests/basic/022.phpt @@ -2,6 +2,7 @@ Cookies test#1 --INI-- max_input_vars=1000 +filter.default=unsafe_raw --COOKIE-- cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10 --FILE-- diff --git a/tests/basic/023.phpt b/tests/basic/023.phpt index 07fe9d6d3..ca5f1dcfb 100644 --- a/tests/basic/023.phpt +++ b/tests/basic/023.phpt @@ -2,6 +2,7 @@ Cookies test#2 --INI-- max_input_vars=1000 +filter.default=unsafe_raw --COOKIE-- c o o k i e=value; c o o k i e= v a l u e ;;c%20o+o k+i%20e=v;name="value","value",UEhQIQ==;UEhQIQ==foo --FILE-- diff --git a/tests/basic/bug61000.phpt b/tests/basic/bug61000.phpt new file mode 100644 index 000000000..8149d68e9 --- /dev/null +++ b/tests/basic/bug61000.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #61000 (Exceeding max nesting level doesn't delete numerical vars) +--INI-- +max_input_nesting_level=2 +--POST-- +1[a][]=foo&1[a][b][c]=bar +--GET-- +a[a][]=foo&a[a][b][c]=bar +--FILE-- +<?php +print_r($_GET); +print_r($_POST); +--EXPECTF-- +Array +( +) +Array +( +) diff --git a/tests/lang/bug24054.phpt b/tests/lang/bug24054.phpt index 9f027e426..fc51c83d7 100644 --- a/tests/lang/bug24054.phpt +++ b/tests/lang/bug24054.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #24054 (Assignment operator *= broken) --FILE-- -<?php // $Id: bug24054.phpt 140237 2003-09-13 19:49:50Z abies $ +<?php // $Id$ define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF); define('LONG_MIN', -LONG_MAX - 1); |