Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124919 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 BE88E1A00C8 for ; Tue, 13 Aug 2024 14:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723558395; bh=kWi29Dwf3Uu+sN802MZ3UPlNvPdOvp3tySFjv9Ha02U=; h=References:In-Reply-To:From:Date:Subject:To:From; b=Us5kh7zjxkO0UkAKSmnRPeEnRM3SzUZLhtKFP6K+ObQqNFHbE31Z7cM9opAERfvUJ GOVtP2umWZqeysNqeY2XlVe91aBRfqnKjYDhAYS+TU9+InmBEv5ejwverSY1WYq0T6 1lO4QOMBiTDgxnHRyCpoOPhprY5pLBAYk3nNDDHhmgntp5LY7aHLOdxwMj/gUsU0Zy 72fAvo5h7CR8fifUUmW0VKTeq8W2/gTOAonqKdstD3XJHrPEu2TVENrUoUIphe3plU j1Q8gzwzV/lwUZjJpNQZF9uGVUO/En70JozrGddtUEW28txJVDITQePt2p2Y1NMygp O+6s/bZgZJIUQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 50AEB1801EB for ; Tue, 13 Aug 2024 14:13:14 +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_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-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (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, 13 Aug 2024 14:13:12 +0000 (UTC) Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-6bb96ef0e8eso29263446d6.2 for ; Tue, 13 Aug 2024 07:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723558286; x=1724163086; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kWi29Dwf3Uu+sN802MZ3UPlNvPdOvp3tySFjv9Ha02U=; b=VxBXpkINA9KZLuO4sIEHHfzLy4UzsGBduWkYNmKBn6WtByu2n6uCLmMmF49TiWkO/u GeFsM+gUXsXP3KU6rLrc77vGgIf0XHM+5ZYIKm7SRoC+WRsyQJCx8SLUzIdy3fYbtHdy /jXuJXgZhgbSRvVEOHq978iMVzuF/LoTxSxr3f7B2/mZdUzNKo+Egy6WR/lSddjTBHWJ XNhIEhtUaIFmiH3MqiXoO84JVFEcAA5IGg0CpnHn4/pLMPN2ylsEfziPLn44HE05mKN0 jzyeRp/OSAabBK+VPX6K6uXJvgaZt+BgqY9HlVzFoR61KYQh64qm+oOlu3kLC9Qg1PWf cs3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723558286; x=1724163086; h=content-transfer-encoding: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=kWi29Dwf3Uu+sN802MZ3UPlNvPdOvp3tySFjv9Ha02U=; b=SqjwkXW5ovh2ilnozPIorjY8G5ggvuhcSU+MTsZ00Z1RGGCAmYlQtxE+eVTdwyw1SH CG3x44iA6+7TFlA0Wtsr7strcAgXmotq0HPHATayTcvrjJTRTDmlVoEC3K/zrcWfDRAi HncPHzduQJzpzCRHCR+L7uGa0rIJM0chSxSUaeOIrOXvYjo+ROzxLQ//B3aRtvMx50r2 68kDi1KjlpGxUUEQizUcLUX6PYOU/v5A9Vmt5pXAhCmDV8IqHSHbbmkROqUi8MnBNFts kQF1B4wXzfEkgGleKYXiVn++9EuEjXWXhN7OGweL09EF6aNg65fKon2YspmRYif4Kwns d9Jg== X-Gm-Message-State: AOJu0YxXp9bimI6UewzK+t6/thKhdJsN0Yn+LMqHobYb7H2gA+SmU1/A i/DsIPObnU26J/1iLf7ZtKI1wfXYc0AvnxCEw0ew1GxiLs/1TcqcnvgveXDkYhxedkXulcMAoyE AoQ+mvHUPK+QfJVd42MkMtVSLFVRd+ghNiEo= X-Google-Smtp-Source: AGHT+IExnG+yEnRuZkH+XfUTuBcbdA7WJQKXqTqz9NMsZtZ6xyhqeP5nTKxPzrbFH7Hn0JKv4XNtcEyprVh2sAHmKR8= X-Received: by 2002:a05:6214:3d88:b0:6b5:6c27:642e with SMTP id 6a1803df08f44-6bf4f7780c3mr48191386d6.14.1723558286084; Tue, 13 Aug 2024 07:11:26 -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: Date: Tue, 13 Aug 2024 16:11:14 +0200 Message-ID: Subject: Re: [PHP-DEV] Require C11 in PHP 8.4 To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Levi On Mon, Aug 12, 2024 at 5:56=E2=80=AFPM Levi Morrison wrote: > > Given the timetable, I wouldn't change the C std requirements for 8.4. Just to state it officially: You object to switching to C11 in 8.4? In that case, we'll have to postpone. > 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. I'm a bit confused about the relevance of C11 atomics. As I'm sure you're aware, they remain optional in C17/C23. So, we'll need to support a fallback, my suggestion was not to remove the fallback. Essentially, code-wise, nothing would change if we adopt C11, except being allowed to redeclare typedefs. Apart from that, only the documentation would change. Ilija