Re: Moving a tmpfile()?
| From: | Robert Landers | Date: | Sat, 29 Apr 2023 12:56:13 +0000 |
| Subject: | Re: Moving a tmpfile()? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120162@lists.php.net to get a copy of this message | ||
On Sat, Apr 29, 2023 at 9:33 AM Dan Liebner <dliebner@gmail.com> wrote:
>
> Are there any inherent problems with moving a file created with tmpfile()?
> In practice, it seems that it can be done and the file will not be deleted
> after being moved and the file handle closed.
>
> Thanks,
> Dan
I suspect it depends on the OS. For example, in Linux, you can delete
a file you are writing to without issues, but you cannot in Windows.