Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121373 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13900 invoked from network); 18 Oct 2023 08:28:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2023 08:28:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 395371804D0 for ; Wed, 18 Oct 2023 01:28:48 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS2639 136.143.188.0/23 X-Spam-Virus: No X-Envelope-From: Received: from sender4-of-o52.zoho.com (sender4-of-o52.zoho.com [136.143.188.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 18 Oct 2023 01:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697617725; cv=none; d=zohomail.com; s=zohoarc; b=UuqjpHYfYLGRlpiwI1UtN7Cc8Rw/wRzLfjVzhOkQAnt3hsNEsll38EkP5GwjgNQxuiEEK/qie3Ls3OdTWYZo0aL5ArOtqF+gPtSIw8nLHkvhV/oES0B4P2/DIGbGthhdWLeP3P4mpfCyjSki4Em9K9KS2jr2pjk7soBn5ZdOZew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697617725; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=MTWnp/eLC0/NyCYPKs5MVkZHzqDJmumG9AJ14hVlaGM=; b=ncK6ymKDg6U3zP4/1aR3/lLffuaSk7SnvUz27nj/iA4QIiQYEfWQyxdbY8pperjSbJrsbu2+Gew2G7Y2vyvGjHyiESv04wMAGvLM6n7GI51mGnN9VbQKHSKEqd43QXntFPU/5l24LhaeEQUNcyc+S7lG08HRW2soqAJzX1VBZUw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=daniil.it; spf=pass smtp.mailfrom=daniil@daniil.it; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1697617725; s=daniil; d=daniil.it; i=daniil@daniil.it; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=MTWnp/eLC0/NyCYPKs5MVkZHzqDJmumG9AJ14hVlaGM=; b=bTzbr39TArDxEYVYI+Z+1sqk4UTc2yuLPV0RJ2PmHwqwvqnJK2+BBlcvdAwHn2Pv jFROFmjgq2G8p8tuXQygzGtxSjiBiNA94vU0xMF6aGgnK2guQQoXfBbD4KARH5c+CPq h+B391usIDOqUz6J9WVZY3yViXomYwsYt7dfzNQU= Received: from [192.168.69.233] (128.116.205.77 [128.116.205.77]) by mx.zohomail.com with SMTPS id 1697617723896680.6615851605578; Wed, 18 Oct 2023 01:28:43 -0700 (PDT) Message-ID: <94b5daba-22fa-49b8-9551-6f9a3b6ef13a@daniil.it> Date: Wed, 18 Oct 2023 10:28:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External Subject: Re: [PHP-DEV] Deprecate posix_times From: daniil@daniil.it (Daniil Gentili) Hi, As listed in my original thread, I think that offering posix_times without offering sysconf would be like offering a version of the microtime function, which returns a value divided by a *undocumented and unexposed divider that changes in each patch version of PHP*. The main reason I would like to see this deprecated is not the fact that it's returning a less precise value compared to getrusage, but rather because it's returning a value that cannot be interpreted in any way from pure PHP. Regards, Daniil Gentili. On 10/18/23 09:00, Christian Schneider wrote: > Am 17.10.2023 um 19:39 schrieb Daniil Gentili : >> I would like to submit an RFC (and related PR) to deprecate posix_times for PHP 8.4, removing it for PHP 9. > My question here would be: Is there sufficient reason to remove this function and introduce a BC break, i.e. is the implementation code hard to maintain or does the function cause security issues? > > Unless that is the case I'd leave it unchanged and just add a note to the documentation that people might want to consider using getrusage() instead. > > Regards, > - Chris >