diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-05-07 23:27:59 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-05-07 23:27:59 +0000 |
commit | 420352d8b5320730689ac3f3772c372c78af3a74 (patch) | |
tree | 8015701520498a9ce3f4b657cc1bbb21cf94a5ce /tests | |
parent | c25a2f6cd2811fb1503900af8db875b3e4d82e11 (diff) | |
download | php-git-420352d8b5320730689ac3f3772c372c78af3a74.tar.gz |
Register RAW_POST_DATA even when always_populate_raw_post_data is off in
instances where content type is not known
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/026.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/basic/026.phpt b/tests/basic/026.phpt new file mode 100644 index 0000000000..3d0d9df1ec --- /dev/null +++ b/tests/basic/026.phpt @@ -0,0 +1,19 @@ +--TEST-- +Registration of HTTP_RAW_POST_DATA due to unknown content-type +--INI-- +magic_quotes_gpc=0 +always_populate_raw_post_data=0 +--SKIPIF-- +<?php if (php_sapi_name()=='cli') echo 'skip'; ?> +--POST_RAW-- +Content-Type: unknown/type +a=1&b=ZYX +--FILE-- +<?php +var_dump($_POST, $HTTP_RAW_POST_DATA); +?> +--EXPECT-- +array(0) { +} +string(10) "a=1&b=ZYX +"
\ No newline at end of file |