On Sat, Apr 29, 2023 at 9:33 AM Dan Liebner <dlieb...@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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to