diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-05-06 16:26:11 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-05-06 16:26:11 +0000 |
commit | 468dc98961d6c4082b62d0ddef587326a986c029 (patch) | |
tree | c93894262484abd32b67f9da721c89a3578f685d /tests/basic | |
parent | accdf2c64ca87fa526f8a7fd3e4b3e5a397c87e5 (diff) | |
download | php-git-468dc98961d6c4082b62d0ddef587326a986c029.tar.gz |
Added $HTTP_RAW_POST_DATA test
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/024.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/basic/024.phpt b/tests/basic/024.phpt new file mode 100644 index 0000000000..c3336c7ce8 --- /dev/null +++ b/tests/basic/024.phpt @@ -0,0 +1,30 @@ +--TEST-- +Test HTTP_RAW_POST_DATA creation +--INI-- +magic_quotes_gpc=0 +always_populate_raw_post_data=1 +--SKIPIF-- +<?php if (php_sapi_name()=='cli') echo 'skip'; ?> +--POST-- +a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3 +--FILE-- +<?php +var_dump($_POST, $HTTP_RAW_POST_DATA); +?> +--EXPECT-- +array(3) { + ["a"]=> + string(3) "ABC" + ["y"]=> + string(3) "XYZ" + ["c"]=> + array(3) { + [0]=> + string(1) "1" + [1]=> + string(1) "2" + ["a"]=> + string(1) "3" + } +} +string(30) "a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3" |