Richard Quadling wrote:
But even with ...
always_populate_raw_post_data On
I get ...
Notice: Undefined variable: HTTP_RAW_POST_DATA (for
$HTTP_RAW_POST_DATA) and Notice: Undefined index: HTTP_RAW_POST_DATA
(for $_SERVER['HTTP_RAW_POST_DATA']).
Assuming you CAN get the length, it may be that you cannot actually
get the data.
Have you tried reading from php://input? Having it all in
HTTP_RAW_POST_DATA implies it has all been read at once anyway.
The content-length warning is AFAIK unavoidable. I mentioned before that
I use an .htaccess file to set post_max_size just for that script - I
also set error_reporting there to suppress the warning.
I suggest we move this discussion to php-general anyway, since we're no
longer talking about internals.
Arpad
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php