# [RFC]: fsync function

- Thread: https://externals.io/message/113025
- Original archive: https://news-web.php.net/php.internals/113025
- Started by David Gebler on 2021-01-30T01:58:40+00:00
- Messages: 4
- 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

---

## #113025 — David Gebler — 2021-01-30T01:58:40+00:00

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

Hi internals,
Some time back I asked for commentary on a proposal to add `fsync()` to PHP,
I have now submitted a draft RFC https://wiki.php.net/rfc/fsync_function
alongside an in-progress proof of concept PR (current status: can compile
locally and run but the branch needs more work to bring it up to standard,
as well as tests and documentation) which I would like to open up for
review and discussion.

Thanks.

David Gebler
davidgebler@gmail.com

---

## #113027 — David Gebler — 2021-01-30T18:34:16+00:00

URL: https://externals.io/message/113025#113027 · In reply to: #113025

Updated the PR https://github.com/php/php-src/pull/6650 following comment
from Nikita, added basic tests, would appreciate further review from
contributors, have updated the RFC https://wiki.php.net/rfc/fsync_function to
under discussion, cheers.

David Gebler
davidgebler@gmail.com




> Hi internals,
> Some time back I asked for commentary on a proposal to add `fsync()` to PHP,
> I have now submitted a draft RFC https://wiki.php.net/rfc/fsync_function
> alongside an in-progress proof of concept PR (current status: can compile
> locally and run but the branch needs more work to bring it up to standard,
> as well as tests and documentation) which I would like to open up for
> review and discussion.
>
> Thanks.
>
> David Gebler
> davidgebler@gmail.com

---

## #113040 — David Gebler — 2021-02-01T17:35:45+00:00

URL: https://externals.io/message/113025#113040 · In reply to: #113027

Hi internals,
I have updated the GitHub PR and wiki RFC to also include an implementation
of fdatasync.

On another note, I note my PR builds are failing on MACOS_DEBUG_NTS with a
test in ext/zend_test/tests/observer_error_05.phpt- this does not appear to
be related to my changes and I'm wondering if anyone can shed any light on
this? I'm seeing it on some other open PRs too so I'm guessing it's a known
issue? Cheers.

David Gebler
davidgebler@gmail.com




> Updated the PR https://github.com/php/php-src/pull/6650 following comment
> from Nikita, added basic tests, would appreciate further review from
> contributors, have updated the RFC https://wiki.php.net/rfc/fsync_function to
> under discussion, cheers.
>
> David Gebler
> davidgebler@gmail.com
>
>
> On Sat, Jan 30, 2021 at 1:58 AM David Gebler <davidgebler@gmail.com>
> wrote:
>
> > […]

---

## #113069 — David Gebler — 2021-02-03T17:46:58+00:00

URL: https://externals.io/message/113025#113069 · In reply to: #113040

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



> Hi internals,
> I have updated the GitHub PR and wiki RFC to also include an
> implementation of fdatasync.
>
> On another note, I note my PR builds are failing on MACOS_DEBUG_NTS with a
> test in ext/zend_test/tests/observer_error_05.phpt- this does not appear
> to be related to my changes and I'm wondering if anyone can shed any light
> on this? I'm seeing it on some other open PRs too so I'm guessing it's a
> known issue? Cheers.
>
> David Gebler
> davidgebler@gmail.com
>
>
> On Sat, Jan 30, 2021 at 6:34 PM David Gebler <davidgebler@gmail.com>
> wrote:
>
> > […]
