fix length overflow of HTTP_RAW_POST_DATA
refactor _php_stream_fopen_{temporary_,tmp}file()
refactor php_stream_temp_create{,_ex} and use it for the php://input stream
finish
restore API compatibility
reorder
BFN for bug #67551 (php://input temp file will be located in sys_temp_dir instead of upload_tmp_dir)