always_populate_raw_post_data = On breaks file uploads..
| From: | Jani Taskinen | Date: | Thu, 31 Oct 2002 05:26:52 +0000 |
| Subject: | always_populate_raw_post_data = On breaks file uploads.. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-90353@lists.php.net to get a copy of this message | ||
Broken by this commit:
--------
2002-10-21 Hartmut Holzgraefe <hartmut@six.de>
* ext/standard/php_fopen_wrapper.c
main/SAPI.c
main/main.c
main/php_content_types.c
main/php_globals.h:
some changes to how request input data (Content-Lenght >0) is handled
- webdav-specific stuff removed (should be handled using httpd.conf
LIMIT or equivalents)
- always_populate_raw_post_data now working on any method, not just
POST (and webdav methods with allow_webdav_methods), when
Content-Length is greater zero
- raw input data is also available using php://input stream,
this way one doesn't have to care about memory_limit
- input data is now always consumed (although maybe ignored,
this fixes we had withproblems with keep-alive connections
--------
Now the $_FILES / $_POST arrays are empty when you do
a "multipart/form-data" POST. All data is in $HTTP_RAW_POST_DATA.
(when always_populate_raw_post_data is On in php.ini)
Never heard of 'Test before commit' ???
Very important thing especially when committing huge
patches like this one was.
--Jani