Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110327 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92683 invoked from network); 1 Jun 2020 19:07:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Jun 2020 19:07:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27AFD18054F for ; Mon, 1 Jun 2020 10:49:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 144.76.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail01.nexxes.net (mail01.nexxes.net [144.76.185.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jun 2020 10:49:02 -0700 (PDT) Received: from [IPv6:2001:4dd7:ffb0:0:f8b8:b5f6:983e:e9b2] (2001-4dd7-ffb0-0-f8b8-b5f6-983e-e9b2.ipv6dyn.netcologne.de [IPv6:2001:4dd7:ffb0:0:f8b8:b5f6:983e:e9b2]) (Authenticated sender: db220660-p0g-1) by mail01.nexxes.net (Postfix) with ESMTPSA id 48E3B860622; Mon, 1 Jun 2020 19:49:01 +0200 (CEST) To: David Gebler , internals@lists.php.net References: Autocrypt: addr=php@dennis.birkholz.biz; prefer-encrypt=mutual; keydata= mQGiBEnM7DIRBADL+i+aPpq2kqIJbf9Lhgu5Ly8Df2AJpIZnEVT0+vlTyCf1TzX6th5NW1fT VfXq7CBnZ5WJImcq2sibWfjRMEhU4d7PUz4cpUwp8qIDjyK5AnX6YPJiyI/SPs8oZoWtSYFn 03puZ8/QC4L+GS34Y1hbtA+MFvQZmij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X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC proposal: fsync support for file resources From: php@dennis.birkholz.biz (Dennis Birkholz) Hello David, isn't fflush exactly this: https://www.php.net/manual/en/function.fflush.php Greets Dennis Am 01.06.20 um 18:56 schrieb David Gebler: > Exactly as the subject says, I would like to propose an RFC for adding an > fsync() function for file resources, which would in essence be a thin > wrapper around C's fsync on UNIX systems and _commit on Windows. > > 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 am not really a C programmer and I have been able to implement a simple > working prototype of this as a compiled extension in merely a few hours, so > I'm sure it wouldn't be difficult to bring in to the language core where > the functionality really belongs. > > Every other major programming language otherwise comparable to PHP in > features supports a way of providing durability. > > Thanks. >