Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121569 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20680 invoked from network); 3 Nov 2023 17:08:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Nov 2023 17:08:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 560781804BC for ; Fri, 3 Nov 2023 10:08:12 -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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,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: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 ; Fri, 3 Nov 2023 10:08:11 -0700 (PDT) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-9be02fcf268so348165966b.3 for ; Fri, 03 Nov 2023 10:08:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699031290; x=1699636090; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5ut8lqrzGtkV0DMKEv6UqaXHxiDQIeubgjwKlBs4A88=; b=IuGq1nt+xEBx46zfpBVRwFL3G5juaS/+9W9D3Of2n2rFkjySKxxwwd9zbGUTrTdxJW hrEZCR+f+VTOV1wY5Bk5I1U8yyVdUPVqAObMHR8reDct18tXD0HGq88gVclzr9kd+MrC 8MrvDIS+NR857ugLDIDVJ3A2L/AWWFsbaCdEC/VtiI+Dl+9mN4bInQxa6WnhAdd4JD3o Oj8BClighag7e1jRwA/llTrSedbNSROj7Y0JHyI6FZydpLvQ3rQ9O3TMFgAu5nB5IuKD DwWxOuOH+wZV/MVBH6kiIAVfeJdoRaMhF8ujdq1iXOMS5QqURqrkpMFJKs4IEDv+CILr bMUg== X-Gm-Message-State: AOJu0YyzJzt4oKs19YxLYMl13N8mGOJkW4x0cX4h6vzfLF5JhbIBlZAv 7chZKwt+HqTJ3SuWa1z0mtRBIVLUpNt+cEfOJ3cVAShq2cA= X-Google-Smtp-Source: AGHT+IFFCiV+Cjo3yFWZ3WqzUUgfWLNTSPWjB84XNzRTWILzKyCdJBKMYiTwNhKFIRykvrGvXpTBQHjhkWcuwRma9OM= X-Received: by 2002:a17:907:9612:b0:9d4:2042:775b with SMTP id gb18-20020a170907961200b009d42042775bmr7957428ejc.30.1699031290266; Fri, 03 Nov 2023 10:08:10 -0700 (PDT) MIME-Version: 1.0 References: <9d9acbd8-0b92-419e-b9c6-d7e35d0748dd@daniil.it> In-Reply-To: <9d9acbd8-0b92-419e-b9c6-d7e35d0748dd@daniil.it> Date: Fri, 3 Nov 2023 17:07:59 +0000 Message-ID: To: daniil@daniil.it Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000084c9540609428ca5" Subject: Re: [PHP-DEV] Deprecate posix_times From: bukka@php.net (Jakub Zelenka) --00000000000084c9540609428ca5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 2, 2023 at 11:11=E2=80=AFPM wrote: > 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) > It is exposed: https://github.com/php/php-src/blob/66e2aa725564c2221ace7a26628afe3957f2823= 7/ext/posix/posix.c#L1232-L1241 Also we already define some SC constants so the only that is needed for this is just adding a constant which is a very easy thing to do. > > 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 i= s > 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. > But this is a posix extension which sole purpose is to expose POSIX functions. The extension is available only on POSIX systems. We are not talking about function in standard extension. In such case I would share your sentiment but this is a completely different matter. Cheers Jakub --00000000000084c9540609428ca5--