Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124806 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 989DE1A00B7 for ; Tue, 6 Aug 2024 13:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722950709; bh=m5lvU/4uaS+3yFUtF/ow2GweiJ59M5xqMgYuffCmZ6o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EoDXQWPymoqPHSW8yttkYRb9NRi1O1LJn2kxFSXJnn12kDZArqOB3WVsv0JAjGjDT 1GCulMwX3qYuLdl/3xd9bf5aPa4FZ3u3Ciu/kcl7EOaf25f8r07p/Rk1whQSlKC8+7 7ckfuMH3MSsxiv0fyCmIdQ3X+PyA8ZIS+puL5yZuUlopWPv+WiTUseNDFpladU//vS lKI7Rcbo3UigjVpMLgHhWJcU4sOpIrg7UEUiPwy2Ry9vEpj+vwErgt1ZxwvN7DWIwo 1aHGwSI1wxrV8gYyRi+/kNRz5aRB2BXQD3U83gywvPWpVYUBl01DQBKHOYvxNL/5cX cGhAtjweK3vAw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5CF07180078 for ; Tue, 6 Aug 2024 13:25:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 6 Aug 2024 13:25:08 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2cb510cd097so571305a91.1 for ; Tue, 06 Aug 2024 06:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722950606; x=1723555406; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DQxidkVI3ACgMNxmsw1P/RYEQa2aNe0PHd1lORj70tg=; b=TBBjZR5040hpc6DoJvxrUrpqi6MU+E/jiRaRe6pAr00NA/yeMJ7XpQ2CzcfznhRSQG 3NIasAb17jzks592ykFpivV2mOpoW0DHJaby8T0AGpDcS0Pfby+SQBouTUZ9j0CkliaD OdhognjRFjFaJcPmcumstiNBiJjj/s7i5MH5aS6579Dg12nUKJklOSOzR30L6+xGUonn 3lHoTCUi7Fw/FvRLxuOTZ9vc5i/hmr8pkBMnm2z4hxnLdS8+O+pEWmpFjIDREQqgRMWj Jz83y9B5IHxz+SW2yvue/Bc6qp6JzVT0bPKhv9v2HoKJFO4bxNZ+lifQziTSNhFfy4f/ XMTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722950606; x=1723555406; h=content-transfer-encoding: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=DQxidkVI3ACgMNxmsw1P/RYEQa2aNe0PHd1lORj70tg=; b=TZiPbRnG6r5STtv72KCgYR5Q6lN7aPxqCbQ/yEnEtYEUAZbl3L1soHdwa139v0QmAL PkI+o84tR+gVUtXlUoEiEp3gQBn/xOTruYwN/+VTvZ3KLOQhkDe9NYmjXSoRQ0sfk+9r StTT+3YV3KQQsMqIx2m9uoX4qWRKsU7Tinqrpdl5Dib2cdFL3mSpLAImHUazX6u/az9X TUKQYe52jmmwuYsdmi7YeiMoh0ltNdt1DLZSbM6hCRzha2R8Lvo6eRtMuxNixncd7ZdV OuPs56D/dOWhZ+biiqMopaGBOVVvAKBhw3NvXIQ0tQ1gcN4an6Lvm7E1Fk6P+3C/jKr7 PZ7w== X-Forwarded-Encrypted: i=1; AJvYcCXmWYzu0zv7mUPQxiKv4OKeadH31xyeB6Z061q5PQAMgqtJq2uqU6XLvJVEb69wDiT3FXGb2w3diIvlhD4vNCeOAMFwbWVpjg== X-Gm-Message-State: AOJu0Yx9Te6cw1YhOS2Knj2f64yNGwtWCjMv5/NW31pHDXquGW1CbaNP JLYlprCNuukvr+PB22PvAhiW0q5asT8qC3XuZrZ4loiWEN+d/a2O48y8a4LspMJwZERoTEdzZKg OjOcvMqK+8j9SYgSxVEJ0H/MT8s4= X-Google-Smtp-Source: AGHT+IHSQDNf0J31znCUKzWG27dsKlrGV4oeEDx0r8pWS5gosEoF9BEWhLDxQxtc4AiGRFvdcQ6VrMEDhw8pZns9Gw4= X-Received: by 2002:a17:90a:77ca:b0:2ca:4fca:2892 with SMTP id 98e67ed59e1d1-2cff93d4772mr17466356a91.7.1722950605923; Tue, 06 Aug 2024 06:23:25 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <6cde6bb4-30cc-4838-a003-6333acbd6a3c@gmx.de> In-Reply-To: Date: Tue, 6 Aug 2024 20:23:14 +0700 Message-ID: Subject: Re: [PHP-DEV] Require C11 in PHP 8.4 To: "Christoph M. Becker" Cc: Derick Rethans , Ilija Tovilo , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: pierre.php@gmail.com (Pierre Joye) On Tue, Aug 6, 2024 at 12:10=E2=80=AFAM Christoph M. Becker wrote: > > On 05.08.2024 at 17:42, Pierre Joye wrote: > > > On Mon, Aug 5, 2024, 10:03=E2=80=AFPM Derick Rethans w= rote: > > > >> Instead of having to deal with tickets, wouldn't be be easier if the > >> compiler they used works with the features that we are using? That cou= ld > >> instantly provide a link to the documentation saving all of us time. > > > > it is significantly easier at configure time. Gcc 4.9 is (almost) fully= c11 > > compliant (not 4.7). > > But what about other compilers we support on non Windows platforms > currently, like clang, Apple's clang, Solaris Studio and maybe some more > we don't even know about. Sorry, I meant to actually check if that feature is supported with AC_COMPILE_*. It is painful but has proven to be the only reliable way. As gcc or VCC can be slightly more trusted using their versions, the other, especially on MacOs, can't be trusted, ever. Let alone on other OSes I still wonder why we support them for latest php 8 versions (solaris f.e.). > > As of windows, it will be dependent on the vc version used by the php m= inor > > branch where it may be introduced. > > It's supposed to be introduced as of PHP 8.4.0, which already uses VS > 17, although MSVC supports C11 as of VS 16.5 (while it never claimed to > support C99). So in practise, even those still building their own > Windows binaries with Visual Studio 2019 should not be affected. > > > That being said, I am not sure if the reason mentioned for using c11 in= the > > initial post is used in external extensions (included headers etc), but= at > > least on linux (or similar), an ext can be compiled with any version. > > I somewhat doubt that; we're using a couple of C99 features (like mixed > declarations and statements) in the core for a couple of years (IIRC, as > of PHP 8.0.0), and extensions may do this with their own code, or might > be forced to include public php-src headers which may use some C99 > features. This may not be an issue with any C compilers actually still > in use, but can be sure about that? We can't :). To my understanding the challenges are the extensions maintainers. On Windows it is a controlled environment. We had similar discussions back then when we dropped VC6, which was a much bigger step. I would prefer to go with what makes your work easier than trying to keep older VC support for the latest release, in case we decide to support a minimum VC version for valid reasons. atomic support seems to be one, the header one, I am very doubtful about it as something worth the troubles :). This is being only about windows, that's indeed not valid for any linux/*bsd/*wrt/etc. cheers, --=20 Pierre @pierrejoye | http://www.libgd.org