# [RFC] fsync function

- Thread: https://externals.io/message/113130
- Original archive: https://news-web.php.net/php.internals/113130
- Started by David Gebler on 2021-02-10T13:35:56+00:00
- Messages: 1
- RFC: fsync() Function (Implemented (PHP 8.1)) — https://externals.io/rfc/fsync_function.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #113130 — David Gebler — 2021-02-10T13:35:56+00:00

URL: https://externals.io/message/113130#113130

Hi all,
Giving this one a little bump as I haven't had any particular feedback or
comments about it so far. I know it's not the biggest or most exciting
change in the world but it's implemented and I'd like to progress it to a
vote in another week or so if there are no objections or clarifications? To
summarise:

- Adds `fsync()` and `fdatasync()` for plain file streams on Unix systems.
- Adds `fsync()` on Windows with `fdatasync()` as an alias.

Thank you.

RFC ref: https://wiki.php.net/rfc/fsync_function
PR ref: https://github.com/php/php-src/pull/6650

-Dave



> RFC ref: https://wiki.php.net/rfc/fsync_function
> PR ref: https://github.com/php/php-src/pull/6650
>
> I think this one is pretty much good now and passing builds; when I first
> proposed adding fsync some time ago, there was a suggestion from a couple
> contributors that an RFC might be overkill/unnecessary for this feature
> (and I'd certainly be happy for it to just be accepted as a pull request)
> but want to make sure everyone has had a good chance to look over the RFC
> and implementation and specifically whether anyone has any significant
> concerns or objections?
>
> Thanks.
>
> Dave
>
> 
>
> > […]
