Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124849 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 2DF421A00B7 for ; Sun, 11 Aug 2024 14:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723385664; bh=9o3DKNNMPkjsvtq7OBeZOYXXHrptjZSsRUm4ePhXFmo=; h=References:In-Reply-To:From:Date:Subject:To:From; b=iWyaZNAxsQb86w85rDOVoEqSn2VA/XhV7ENHKBvP32PtMt7xzhFG37aq1QGnPb57B fpq38xWohA2nBWqqlD/Q3atKAg81IzItKEWwtvmup5lZLm4I5AiA6YvEkZdQvCWv6n 2r9C3AD5dOAbsSBOZ1b9UV8ASpzks6TwAfVeBwZrrZTwgn7/WohHReRMR4WoFStbuh fSV9RSrpYHHE5Xp0O1clyyj/n2Ck7DLH0b+QInWnSoc+kofTrYfeOHdm44XzE4V9jE 2tIIL/O0XtfmR8YqDGGS9n55PFRDzXH7CH28gTvfwM81/NxmoZWlWncE+2d4kxY3dG pWzYJBmwfaY0g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8D43D18006E for ; Sun, 11 Aug 2024 14:14:23 +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-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 ; Sun, 11 Aug 2024 14:14:23 +0000 (UTC) Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-6b79fc76d03so21513936d6.1 for ; Sun, 11 Aug 2024 07:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723385558; x=1723990358; 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=9o3DKNNMPkjsvtq7OBeZOYXXHrptjZSsRUm4ePhXFmo=; b=hbzpoSH0CX7xqvGBm3Htk5I0czjStj4MKHwOVhvBs7BCSWFLQhwEgmCvUDEhJISWlr aKrJjlN+oDxqKxGpAxsg+oufF12LRfiMjJgz08ZSyMk0pXjB9tmfjkdCvuPg0EH+MDaS BCwwl4lpnaObbewGRznrRLCdopPQysdLba2QUSainfQwjnJlaulO5nlFJsoEvLTyA2tH +e73gcjsa79A70yzDbzCoZbRBtEeyEjOe5j/4HMKy/z8Mopb7ithsOiI71psbPh4dJ6i fW3SABcJnViHXnFGBH96aHLXMBbIpt+IvwJXkUKeyFmvfK/f1EpIunJddM4EzRWswfIZ nSEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723385558; x=1723990358; 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=9o3DKNNMPkjsvtq7OBeZOYXXHrptjZSsRUm4ePhXFmo=; b=UTUfKD6DzsFMLcE6oG6AaHHiUKwrCUZDhEOTKDqwgn69eB0cLcV20PRZldQsYI3ouY G18NecjtyIayQUSf1+g9UhE+UKrTSKPBHDJEkYaSH8zfcUv2z8eI8jn64kTw2NjDRqYM eA0beQTMMYKcyuQQ8LXFBjLHN+572cgq7t20Hwn8iJ5AJAroP8vEfq3T8ZCsZ4Yq3AfP OSQ/CTV3RzOkOhJbZVCVAVxq+L1ri9pdJNt6zUFTft4o7DYQdPw/pxBGJla8lXM2YjjG 25A8HQI9wiFZV/gjB8h3Jy25CpOzRJWQKrosRaoZR0bSHQS1QKakshAbcBdC7DxaTFyW Df4w== X-Gm-Message-State: AOJu0YyZJ5qomOM0WEjCvJmZnoRS+j9G6hKo0yKz+eE2+EFPRg9npYWh pmQ1u1rfXwYgZ1Fr+8Pwx1yXSPrpUKOvrJH2iuDUh6ZLCHwDK6oh8rpFuSds8JK2W/jAu27LOq1 CI/+LQBZXf15nI4HDNhqix5V+VTRIjulsDF9OqA== X-Google-Smtp-Source: AGHT+IHu7hbj4c7wIDFhIj4CDiZHVO8Q6rPN9TzHTBjrm38nPl+0IRFw7DqeOJMoJiEeNphGSCiEvbkj7QXK0+0Auvw= X-Received: by 2002:a05:6214:318e:b0:6b7:9d3b:b5e0 with SMTP id 6a1803df08f44-6bd78ed8ce1mr89993786d6.35.1723385557919; Sun, 11 Aug 2024 07:12:37 -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: Sun, 11 Aug 2024 16:12:27 +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 Christoph On Sat, Aug 10, 2024 at 2:19=E2=80=AFPM Christoph M. Becker wrote: > > On 01.08.2024 at 23:57, Ilija Tovilo wrote: > > 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. Giovanni's remark that this would impact many people was challenged by Jakub [1] which didn't get a response. I believe it's safe to assume that this isn't the case. > 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. The consensus seems to be that bumping to C11 is ok. While keeping C99 compatibility wouldn't be a big hassle, it doesn't seem necessary anymore. I would agree with Christoph that documentation is enough for now. If your compiler happens to support all the C11 features we require, without full C11 compliance, then that's ok. If we want to reduce bug reports, a configure check for typedef redeclarations, nudging people in the right direction with an appropriate message might help. Verifying C11 support might be tricky, given that the compiler flags are not standardized. But I'm not a build system expert, there might be an approach I'm not aware of. Ilija