Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113260 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8049 invoked from network); 25 Feb 2021 12:11:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Feb 2021 12:11:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6824A1804E3 for ; Thu, 25 Feb 2021 04:00:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 25 Feb 2021 04:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614254439; bh=S/jNJWv9PscqQ2j+B/M+QEKHR9bQCuoQJ2jj93Nht6k=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=aPn9ASkJcaTslMYXQkV+nmSN7xUbzDppXLJ7Mr9d7IMRO688v0f+Nme4MMDMPZFgD SKCUtgkzICjmFt+3jEiXjwtqnfBC32m9BCS1wwFTG5rymuHtg3m0HWBgXoVfP3EX7w zdIqm2mYIM1eDh0UiaDKqCxfBH7904gmrDFmUAaI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([84.179.232.41]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvbG2-1m4KZN11Fe-00shLY; Thu, 25 Feb 2021 13:00:39 +0100 To: Marco Pivetta , David Gebler Cc: PHP internals References: Message-ID: Date: Thu, 25 Feb 2021 13:00:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:vSQkH3g+5nUM4KEQcUkM4VBiKHsR4w3LYlvNWcQoEo7VVOSyGzb Dodh+mvJSkIXps9UDFqR2CewRcYUQdu3b9sY3glpicjXYENIt5C3XowG+rzlBoxvNelgIb2 pd9Tl6RbqZbU4q6HAUUkrrBpVgFOqUhiV9/vjEv6er916n48IjSsXikkyvmE07UnCZkJMqq q+VLpGbkKddlsztSq0ZNg== X-UI-Out-Filterresults: notjunk:1;V03:K0:+4pD1WiUvaY=:y1GqBMvIDlU8mUVPQ/c0MB K/ui/K/ic7sMzo1ce5r885ntOpxQ0t3tD4PjFdaS1hWRmAnCAgIZySnXElPM9xqYrVzxoRr0d EPOXyo4zwT0u1zrZOLE/C8K7f0zYcox89cNx4GOKnTfsrYYKIIAwY3qjekmHVazni/9JROZZq v9ySw/52g+zdBpF14wL6VybYMFM/R2zFTyGzZWndiLBjEh2hql+PfsoeZxDdZ+yP41NLK9LMo 7vN9qYqGh13/Hrt+x/FzLthM1TRr3W38dbUPd0+MJD0R5ssbj252DoxLzjA9f6YCB8PQ3sMpq B3QzGJ976G9rIv6igbsWOLvMnmfJn8WXeFNR5/AWlBIJWqlwy7puHBb1RhyAnNt9gOjEtSZrn wR1RLnYbCnThPXWBnNcf1opwwusN60VT8ce1sxz7jYwQToU9G15HiiV4IyPEzAR7w4apuwIOU Gb3gIRqwehITlrWll3UH+MC36M2N5qIVhjPwTHRFAIPEaBjGOUqF81vWfFn7Uqc7IL/ny46H0 FXBRvteI0EIBLecGYsIQYWz+61o5ziXnR2rrROt7F9AkkyxUrjHInXQ+vEhoazZdl1ZLwfFN7 GPUxxuBq8x+jrfWBA+649ZXGdV+zwiJzZdIXsfVKZ20BcVXp+qls6iiHlFFGmfsBbP0iySfeq 4QaIsavaIXQ2MyGhm2q3nyBLPydvXWRhMWO7jaxD+9fJNrN14+Rfv9xi7npt/aWC8PFIef15p sa2Z9WiTBi7PN5STl+oGhOfS7d1HUxAtv/GQPSJRtcdEGe4gJN0/A0mHiCCw6l4V24tXOz+Y8 KYX3/rdFxkhKEOyzUBi+8dYXoLhaVPdzaZgovi8mwW08BuQQRaPA1oX5jdD2newODIszYaVkG Wgds5RDeoDeEl65pdsIQ== Subject: Re: [PHP-DEV] [VOTE] fsync function From: cmbecker69@gmx.de ("Christoph M. Becker") On 25.02.2021 at 12:43, Marco Pivetta wrote: > Hey David, > > > > On Wed, Feb 24, 2021 at 6:15 PM David Gebler wro= te: > >> Voting is now open for 2 weeks on https://wiki.php.net/rfc/fsync_functi= on >> >> Regards, >> David Gebler >> >> On Tue, Feb 23, 2021 at 5:15 PM David Gebler >> wrote: >> >>> Hi internals, >>> As there appear to be no objections or concerns, I intend to open voti= ng >>> on https://wiki.php.net/rfc/fsync_function tomorrow and voting will >>> remain open for two weeks. >>> >>> The RFC and its implementation >>> >>> - Adds functions fsync() and fdatasync() for plain file streams on Uni= x >>> systems. >>> - Adds function fsync() on Windows with fdatasync() available as an al= ias >>> >>> PR ref https://github.com/php/php-src/pull/6650 >> > > Just clarifying on my "NO" vote: I'm opposed to having more E_WARNING > raised by the language. > > We have better approaches for that: > > * exceptions > * union types > * Maybe/Either types > > I don't see a reason to introduce a warning here, and it makes the funct= ion > unusable unless some poor soul implements a library that gets rid of the > warning. Note that *this* warning is never supposed to occur in production, because it is a programming error to pass a wrong resource *type*. Rasing a warning for wrong resource types is standard behavior of zend_fetch_resource() (unless no resource type name is passed). I don't see why these new functions should use a non standard mechanism. Of course, in the long run resources should go away, which would resolve this issue for these functions as well. =2D- Christoph