Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124781 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 30CC61A00B7 for ; Mon, 5 Aug 2024 17:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722877967; bh=mvnMdcSzKTSGPxrci3Ttk/lLxJtwBvjHxnESRgNcazU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=j3Mq//UjsQZTE5PXkMetqxAzHI8ElHHnxDtSP2n5cCqwqOrZlGhXjp0ZJJAOttXKM rvmFch43rVNhZqKKEcCRivVcNTVhwINFzQvhX16G6X064w0gljWz54C+xLYNWMQzV8 nsjVzrsIFnjgGsz8ybIqocCxAeJp8vuYG8hrk8ntnZ6Ht0kcMP78DohzKCzgAFR6A7 zYukTNbr1xLhE6eHs96baUWFeg8c5x4gL0lEP838pqduXRK2EunbQBy+IsCRSE3hy1 A9LY+WRiv+J2OxZA6Mhppht85ztbEm1DXiJ2Mdhed7JLEL++iB3kfjol0fC3mFGlPT Dt6bfLp5Lj7wg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 62FCC18005C; Mon, 5 Aug 2024 17:12:43 +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.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, 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 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 (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS; Mon, 5 Aug 2024 17:12:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1722877859; x=1723482659; i=cmbecker69@gmx.de; bh=n+PZWefTgHYWiLK0jjU62+X8yBRiFZqR1b4lDsYbPXc=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Ln1/hmQuVkoWE9HI6K7/PT0PYlj0hzLd73lJ+yatOUy3AM0WKpJ175BfgUOT/G51 /kQhfm62InnBavvBUNc7hLQwdjfP+cT0aIcL+84hf5Ku26lHwhL4irMHngaJDtbvK kDUvJ5cstBFe3K1Uyeqs4hgoOWirxCawI3ici3aL3vtAhfDedRViTyIjf1tLiZI2Q 4svMepeors1/LpZIgv54qYf0eb/KmnKy5yPLUntJ/112sGWJCrI6tNSMgdqXlf70r UprbUt3NkMg28VDVYtR2zj9YnZ9MRYfQhxDmIuv1B6Wf5RkOAdVKn3OjR/fKRoHzR 2WQ6/NSsJ6McH8Aqag== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXp9Y-1siqLP0ryW-00QOfc; Mon, 05 Aug 2024 19:10:59 +0200 Message-ID: Date: Mon, 5 Aug 2024 19:10:57 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Require C11 in PHP 8.4 Content-Language: de-DE To: Pierre Joye , Derick Rethans Cc: Ilija Tovilo , PHP internals References: <6cde6bb4-30cc-4838-a003-6333acbd6a3c@gmx.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7m0lWZiOoNLwt7KenlVokaDWCRbEh4KmtnZjmsZe335G3uj2Y3J CNANgFWkwZ6B4UIc4k829vyAPZlbQotaBkisrn9Dn/JmRp2qA+CtRM1rxraA1Nt1Sn2v+2H jo5lwF9MAzuo2EK7J21lBDjjfmodYzyVj9Ro7PCwcbX765KLuMUp/lnjsCI45d+3Moe1mLZ h2yVssUEmiYqjsLMd1aDg== UI-OutboundReport: notjunk:1;M01:P0:gJBDDHdWu7Q=;i2FT/9ll4Giiq2hYE6EqJ82/69Z RwWNEtpfJxLyR0zWCnFaBrI6z9MJlWS1U5LWUDzB4F4FJBdp4h+c+tjyMBldm9RimOI6e5hmG hsD9HGG85q2+SXjKZ5WG3EpfRO3RFu5ysJ1JlrYnxX/L4cH3Jlbi7KRJkgubsluuabvxntbBg y//gis7f8rTsBrFzaThCiWJEewwVr+v9NuKcU7Xx0qRzRaQZ5Ynv980ehYtW7/OklW1y4gYN3 yAR67yC6dTjxsoJpPPDmq/oHuxzNngoWm+2gMDFWG9/uUQbejSgreC3gKccTzTc1WcGEiC2D0 E6zAqvOySfEoHC4oe+POCXHCIS8PWJiDSQc8IGgmkceTC5n9JpBEqut1tQJ9uW9VPtSeMCyaa QnswdH+32/Aj0qlUwdTl9KU1He7rSO8fGtOkenF1d/rHOiFXBnKeKWcIhQxRKycc1hV9c29uH McKKfqaNqYqDbKfB3nRIEbEk5FyfLKypfcl3nTBGRWIxQJU0HU+HJ23C5QG/c4iZg4HlGB+b3 nazP0D73tu0NqiiXJpo3Wjfp08PHxCtCIOkRbMB3ZwyojQVf/GSg3+6sHPuuA/w2W4LMoGfiX 4d/38Qr1wHv5+nEgNFAEXV6/hBFys6X9vfsvlbfxjN0+Mh6lWb6YCUzrPZRLIqpUqG8A1lsdb qk90M4oLFOZ61/Mn2xD5FB/ijpLfSETPWmRuiuZ4EK6GasJMXGc4Nm4kKZHXwfGHoECOSY66t vqzqc17T6aFeQNwCOl+ZEtcWNygydU6hFg/gf58abOJbSG73j6RFI5T7JcmwzngfZ/vdv5PZV D17ZCMg4fPPPJ7u62tjqpG2g== From: cmbecker69@gmx.de ("Christoph M. Becker") On 05.08.2024 at 17:42, Pierre Joye wrote: > On Mon, Aug 5, 2024, 10:03=E2=80=AFPM Derick Rethans wr= ote: > >> 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 coul= d >> 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. > As of windows, it will be dependent on the vc version used by the php mi= nor > 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? And some extensions even require C++ support. Christoph