Re: [RFC][Under discussion] RFC1867 for non-POST HTTP verbs
| From: | Derick Rethans | Date: | Wed, 18 Oct 2023 16:07:15 +0000 |
| Subject: | Re: [RFC][Under discussion] RFC1867 for non-POST HTTP verbs | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121405@lists.php.net to get a copy of this message | ||
On Fri, 6 Oct 2023, Tim Düsterhus wrote:
> On 10/6/23 15:44, Ilija Tovilo wrote:
> > https://wiki.php.net/rfc/rfc1867-non-post
> >
>
> Regarding the cleanup of the files, perhaps the files could be read into a
>
php://temp stream
> (https://www.php.net/manual/en/wrappers.php.php#wrappers.php.memory)?
I don't think that reading potentially large files into memory is a
great idea. It is precisely because of the memory issue that PHP's
existing POST handler writes files to disk, instead of leaving their
content available through an entry in $_FILES.
cheers,
Derick