Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124890 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 EB6FA1A00B7 for ; Mon, 12 Aug 2024 15:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723478292; bh=6PxuJ8whgs4ItvSJB23OIAmyMRx2HjZ/WLErTm2iD7U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZWdqgv+09fRHbntL5Rj/mawVMfN+KhRb1o6pZ2hquwGa5ZPF+s5brfnCYlNvlFHaM vbaV4Lc4UXsNIcotE71jNGLEFxfjZ7ktQ+Ifw3hOYa/eXFITH95thGbWxxtidOGJ5u vTQTH9rjpASUSCx7Npj84fq+M7gy0+tHqBESf2Gat2bL9sRKevSPhnr9rB4uBqC4bH ka3X4N/IwCKLBbwZt9ke3N4TSfogMvTPj7MoxzeyK1g8UsA8MB3hITSbE2/yL7ViSi xq/Shf5nVlyAO+UDWFTWVjNT3tFfKfEOrd0G0GcKiQ5TIBJgsgaSR18gYccfyYv6Z2 Cl9PhvJOcco/A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ECBC1180076 for ; Mon, 12 Aug 2024 15:58:11 +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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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 ; Mon, 12 Aug 2024 15:58:11 +0000 (UTC) Received: by mail-io1-f51.google.com with SMTP id ca18e2360f4ac-81f8f0197abso231115639f.2 for ; Mon, 12 Aug 2024 08:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; t=1723478186; x=1724082986; 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=6PxuJ8whgs4ItvSJB23OIAmyMRx2HjZ/WLErTm2iD7U=; b=ZWHMzCiVaFY47U8/Q5bwHYeF90ElfveXA1nXyGFx9K1WOPA0YRqwFrkG1+PJizlbcS 5AgLEQXnxv2RJI97zvnSXOCRGXiW7pS6HeZ1R9n0EuQ2/rv4EURtz3jnWvmfn1Wu1KyR NGBVxRVOUGXHjTnMFgli+czQPAejYwDI1FhP0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723478186; x=1724082986; 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=6PxuJ8whgs4ItvSJB23OIAmyMRx2HjZ/WLErTm2iD7U=; b=sdH2wPZ4MIoRT8ONoc46q8OK4g8fdOO9DqKYqGMRhAQI5LJ95tfk0LDK7170FhNjq7 o6xrTdLjBiDbXB1aF7Vs3njFFqyJH81h7dFNV3zWObBSoUh/wTWdvkib53lr8MANdxiW Xkun81dPEheyCrodP9z2zHJ1wnliHBzLdu3SW8MQmkzw3oJbRdMGZbVhSOwel9F+bf8h +gAYHzc6oxPcLo9lSromhmfLD/zmpubHc6zepRtCyN5V0AEs00KGbYvnu8wxnBVaIQ6a PvI6eBqCWV3cFeDfRzLvJHeK+p8VKGYhcbJCLt10WnEd2uFDSUVNG5O2V/ilzLkn0w0F wK2Q== X-Forwarded-Encrypted: i=1; AJvYcCWY+k3JTcRcb0EzjQWQNhymsFxynkSUunkL5GkKZwlXe73trk8MSKdVPC5uVXD0H9YcU5a+cjduxO8XNBv1NP4t9/ZZxgq1AA== X-Gm-Message-State: AOJu0YzHLpxaaFkdDYOx0+iFWta73C0mmm3Pdp3z2aqjpqS97MT7XQwK Jd9smLm9gMxP3VYaMkGiKwM/orUVNLhbEiRSclZF9mT3/63JLrRpWq9hm2/X/S535cKOcfvGXTv S8w6RPAQF3zfK8qAN5z5Z2tPhPi8h8YGpj7HckQ== X-Google-Smtp-Source: AGHT+IFTNTC5qUlxMwufOdg3I93jKCLxv95VaVilolz/3NWdRM6/wPEbg/bpyjuhOEgoEMAIDxUIPGlBS4UGsculqGg= X-Received: by 2002:a05:6602:27c2:b0:803:f97f:59d8 with SMTP id ca18e2360f4ac-824c96f5437mr134504039f.0.1723478185892; Mon, 12 Aug 2024 08:56:25 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <9e1068ae-593e-40bc-91d7-dd63545d9e60@gmx.de> In-Reply-To: <9e1068ae-593e-40bc-91d7-dd63545d9e60@gmx.de> Date: Mon, 12 Aug 2024 09:56:15 -0600 Message-ID: Subject: Re: [PHP-DEV] Require C11 in PHP 8.4 To: "Christoph M. Becker" Cc: Ilija Tovilo , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: levi.morrison@datadoghq.com (Levi Morrison) On Sat, Aug 10, 2024 at 6:22=E2=80=AFAM Christoph M. Becker wrote: > > On 01.08.2024 at 23:57, Ilija Tovilo wrote: > > > Hence, it seems like it would be ok to bump our C compiler requirement > > to C11. We'd like to make this change before beta 1 if there are no > > objections. There are no immediate plans to make non-optional use of > > other C11 features, although that is conceivable at some point. > > So skimming the whole discussion[1] it seems that most are generally > fine with bumping the requirements to C11, except for Giovanni Giacobbi > (whose draft PR[2] had no further discussion so far), and maybe for some > uncertainties regarding some less used compilers. > > Given that feature freeze is in 3 days[3], it appears to be prudent to > have a final decision now, and to close PR #15079[4] if we're going with > C11, or merge that or Giovanni's PR[2], otherwise. > > And if we're going with C11, figuring out the details (which > configuration check to use, or only documenting the requirement) can > still be decided somehwat later, in my opinion. > > [1] > [2] > [3] > [4] > > Cheers, > Christoph Given the timetable, I wouldn't change the C std requirements for 8.4. I would stop relying on the typedef and forward declare only the struct, and that. Note that although Windows supports C11, it does not support all features including atomics. Someone chimed in to say that they are available, but this doesn't match the information I got from a coworker who did a similar test. Given conflicting information and the short timetable, I think we should lean towards being cautious. I hope for 8.5/9.0 we can move to C11/C17 which can improve the typedef situation, simplify our atomics handling, and more.