|
|
|
@ -64,6 +64,12 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) |
|
|
|
length = php_stream_copy_to_mem(SG(request_info).request_body, &data, PHP_STREAM_COPY_ALL, 0); |
|
|
|
php_stream_rewind(SG(request_info).request_body); |
|
|
|
|
|
|
|
if (length > INT_MAX) { |
|
|
|
sapi_module.sapi_error(E_WARNING, |
|
|
|
"HTTP_RAW_POST_DATA truncated from %lu to %d bytes", |
|
|
|
(unsigned long) length, INT_MAX); |
|
|
|
length = INT_MAX; |
|
|
|
} |
|
|
|
SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, length); |
|
|
|
|
|
|
|
sapi_module.sapi_error(E_DEPRECATED, |
|
|
|
|