Re: PHP-5.6 php://input temp files
| From: | Levi Morrison | Date: | Wed, 02 Jul 2014 21:16:17 +0000 |
| Subject: | Re: PHP-5.6 php://input temp files | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75179@lists.php.net to get a copy of this message | ||
On Wed, Jul 2, 2014 at 11:56 AM, Michael Wallner <mike@php.net> wrote:
> Hi!
>
> While hunting other bugs I noticed that the temp stream for php://input
> stores its temp files in sys_temp_dir instead of upload_tmp_dir (of
> course), which might be quite unexpected and cumbersome for a sysadmin.
I can understand why you would put it in upload; the php://input
stream is the raw data for the request which is most commonly used in
uploads via PUT or POST.
However, it did take me a few minutes to realize this. I would not
have expected it to be in the upload tmp directory instead of the
system temp directory.