Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121560 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66552 invoked from network); 2 Nov 2023 23:11:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Nov 2023 23:11:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 45B6A180504 for ; Thu, 2 Nov 2023 16:11:49 -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,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,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-o50.zoho.com (sender4-of-o50.zoho.com [136.143.188.50]) (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 ; Thu, 2 Nov 2023 16:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698966704; cv=none; d=zohomail.com; s=zohoarc; b=Acs26frqp17KogoFZXSYXcOgf61pAthek/IzT/dgspFpMxWvP3OgIMKxv4iYltPvOJwcEXQMQ4JmQ75mYHGXsybu0m8/iyP2+EEqinsw5P2pQjKQpT4SRbCbbEpQSHChHaFh6EN4qQmDilATl0CLI/IPgZB8Q3kXqaSSEuBh030= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698966704; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=c07Lcz/gffifV6YWtquIzqgcvGIGkkYON6by6IAc0eM=; b=M9e+g2sySPcuJ11yDsohpge0p7O7gHoEZkjx9CsBPod8LZ+EE3/aMBlB/Bj6G4HGfIGkBGRm/qbETh/U1rKUVzABNJMMjMLDn8S6i+HkknrqUybmCXxzuY1+1gfIZ38YzeQkpR4ZbEqm3zMv3bWcSgVuBZHKDR6HKb5d2b4Gsbc= 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=1698966704; s=daniil; d=daniil.it; i=daniil@daniil.it; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=c07Lcz/gffifV6YWtquIzqgcvGIGkkYON6by6IAc0eM=; b=ZA9h+VI2mD9usOG5juSlN376EZUzeUTZt6bXPXihVPZcJGszH0us0/HMUrWvHiZi svkotgAiWDOwqK883h8vOtUgwGJCY9u1LLe2o1USnDYT5w2gXPKbD/LIlFU1e07vMBW OkyFd8LBt6yR7vLvYgrjMapUQJ1QsoqPsw6d4FAU= Received: from dummy.faircode.eu (128.116.205.77 [128.116.205.77]) by mx.zohomail.com with SMTPS id 1698966702341961.1194823748284; Thu, 2 Nov 2023 16:11:42 -0700 (PDT) Date: Fri, 3 Nov 2023 00:11:40 +0100 (GMT+01:00) To: Jakub Zelenka , internals@lists.php.net Message-ID: <9d9acbd8-0b92-419e-b9c6-d7e35d0748dd@daniil.it> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_39_99310529.1698966700318" X-Correlation-ID: <9d9acbd8-0b92-419e-b9c6-d7e35d0748dd@daniil.it> X-ZohoMailClient: External Subject: Re: [PHP-DEV] Deprecate posix_times From: daniil@daniil.it ------=_Part_39_99310529.1698966700318 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I would like to echo the sentiment expressed by Tim earlier in another subthread: >If a function cannot be safely or correctly used at all, then it shouldn't exist, especially if there are working alternatives [1]. > >Expecting users to find a warning in the docs to learn that they should "never" use a function is not good developer experience. I am aware that the function is defined by the POSIX standard but 1) Not all POSIX functions are currently exposed by the POSIX extension, sysconf being one of the missing ones (with IMO no good reason to add it) 2) I am not aware of the historical reasons that lead to the addition of a duplicated, less capable function to the POSIX standard (I'm super duper sure there's some reason related to an implementation detail of some 30+ year-old platform :), but PHP isn't a POSIX-compliant OS, it is not PHP's task to expose the entirety of the POSIX standard functions: PHP's task is to provide a simple to use language that also exposes some *useful* functions from the POSIX standard, and posix_times does not fit the definition, in my opinion. Regards, Daniil Gentili. ------=_Part_39_99310529.1698966700318--