Am 01.06.2020 um 18:56 schrieb David Gebler <davidgeb...@gmail.com>:
> It seems to me an odd oversight that this has never been implemented in PHP
> and means PHP has no way to perform durable file write operations, making
> it inherently unsuitable for any systems requiring more intensive I/O,
> mission critical logs, auditing, etc.

I think there is a misconception of the usefulness of fsync() here.

First of all it does not *really* guarantee the data is safe from power outages 
etc, see
        https://stackoverflow.com/a/706688
        https://stackoverflow.com/a/725742
and other answers in that thread.

Secondly I'd rather rely on something like a proper DB if not losing any data 
is crucial.
Trying to implement it in pure PHP and plain old files seems like using the 
wrong tools for the job to me.

While there is little reason not to add fsync() to PHP the importance and 
benefits are IMHO not that big.

- Chris

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

Reply via email to