Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119274 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46536 invoked from network); 16 Jan 2023 12:44:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jan 2023 12:44:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0C5441804AB for ; Mon, 16 Jan 2023 04:44:28 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Jan 2023 04:44:27 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id q23-20020a17090a065700b002290913a521so11551325pje.5 for ; Mon, 16 Jan 2023 04:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wB7VLQTpimV9CLi0mbF+uy3tPQ38sh1x94q83FiJyvE=; b=TV2UR+/jU6Q5BS0koN4ueFTmxLPb1Q+LhToo96cNL/771+c5oT9qhrk1L1sCEqwCES jXzlDk7uELZxA2oEFav1Uk2Hx8BP8FgxTLbsVP4Pchrj927yR5BfsDm0LbjNr0edR0+8 7m+P3ZUbLrXrhzKqH8MwdqS+Y+2Rmfvl4Q9Y3YYXQ3SuTtwJsb9Lp14JkKuKU5639rET z/lGz6p7Iyih2c+F7kw8CNc5ssgdA1X1B92MPOftEO2cS0OqNXmM0SXTU1/6GODHjjSA JSVYU4TY/mjMP27Ze7uel0vfEaFdQatLmNCM5t3keuVg25F/tNXyCWhBNBJGx/Uz6Bu+ leHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=wB7VLQTpimV9CLi0mbF+uy3tPQ38sh1x94q83FiJyvE=; b=i7lzui+9Lz8aHmDax7/haXQNmXzlRELyJBIiTkfRiP/WskdSUsbyJcRbIkXsHjsH+t 1tUbZJX7Tho+w9s10NCdvkRgWEEalU2SufwnHdfDisttr4IwCcf57mxm5d2BRM/daJgC Urdo7nBYsce2wM6a0irvOLG0dZ7kcdULZP6N24LZJ8snGgpOq7tXCXB+eV6wf4zeBrJB 4TZ7OxJZ7FNcpPOM8ecfE0LZ/ZQlBR2RszRR/2q41Svxvnb0BToSCA7vD7M37aztaikk IB2HNTG1/rtXu9xGIgMEs1HcnO1eJTUENjnc20yhDi8enx3bubU2yGNFcpasc7sqhaEq SDuA== X-Gm-Message-State: AFqh2krceMf0DSy1Q4q17rW6U2IKbloe5Quw+V4PEQEQWHz7Y2BTglXU 4XsaYH4vPra4B06+KdWX0+SyKl1PFvk5F+LyQ7g9hOcs X-Google-Smtp-Source: AMrXdXvqjrzxoz0nhFv90ZfGitFJ3mIQEolekCnrdZfc2F2UqO3+CzI4J36nhK83pd9FGNShkuFMz9BK76i1pTg+H+Y= X-Received: by 2002:a17:90a:cc12:b0:228:d8de:7194 with SMTP id b18-20020a17090acc1200b00228d8de7194mr2008929pju.24.1673873066528; Mon, 16 Jan 2023 04:44:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 16 Jan 2023 15:44:13 +0300 Message-ID: To: Max Kellermann Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000008795a505f260f1bc" Subject: Re: [PHP-DEV] RFC: rules for #include directives From: dmitrystogov@gmail.com (Dmitry Stogov) --0000000000008795a505f260f1bc Content-Type: text/plain; charset="UTF-8" Hi Max, Thanks for describing the situation. We do not often vote on implementation changes that don't affect PHP language itself. At first, I even considered these changes as "I don't care". However, they are turned up into huge patches that make troubles for PHP maintenance. As we didn't come to an agreement, the best decision should be done by the PHP community. In the current state of the implementation I'm personally against this, but I might change my opinion if this is targeted to PHP-9 and the implementation is done in a some better way. Thanks. Dmitry. On Mon, Jan 16, 2023 at 3:03 PM Max Kellermann wrote: > Hi, > > in the past weeks, I submitted four PRs for cleaning up the #includes > in the PHP code base: > > https://github.com/php/php-src/pull/10216 > https://github.com/php/php-src/pull/10220 > https://github.com/php/php-src/pull/10279 > https://github.com/php/php-src/pull/10300 > > I saw that the existing #include directives were inconsistent, > incomplete and bloated; things just worked by chance, not by design, > because there were a few headers which just included everything. I > wanted to help clean up this mess that had accumulated over two > decades. > > All PRs were welcomed by different reviewers and were merged; there > was just one minor criticism by Dmitry Stogov who thought the code > comments explaining many non-obvious #includes should be removed: > > https://github.com/php/php-src/pull/10216#issuecomment-1375140255 > > > I don't think we should include the comments like // for > > BEGIN_EXTERN_C (and similar). The are good for review only. I'm > > indifferent to these changes and don't object. > > Yesterday, when a DTrace-specific regression was reported > (https://github.com/php/php-src/pull/10220#issuecomment-1383035139), > after which Dmitry asked to revert the whole PR: > > https://github.com/php/php-src/pull/10220#issuecomment-1383658247 > > Instead, I submitted a trivial fix for the regression > (https://github.com/php/php-src/pull/10334), which was rejected by > Dmitry > (https://github.com/php/php-src/pull/10220#issuecomment-1383706602) > but confirmed by the original reporter > (https://github.com/php/php-src/pull/10220#issuecomment-1383802334). > > In spite of that, Dmitry demanded to revert all of my #include > cleanups > (https://github.com/php/php-src/pull/10220#issuecomment-1383739816): > > > I'm asking to revert all these include cleanup commits! This is > > just a useless permutation. e.g. 68ada76 adds typedef struct _* that > > we didn't need before. How is this clearly? > > ... which so far only Derick Rethans agreed to: > > https://github.com/php/php-src/pull/10220#issuecomment-1383784480 > > > FWIW, I agree with Dmitry here, and these should all be reverted. It > > adds nothing but clutter. > > Christoph M. Becker performed the revert and suggested doing an RFC > (https://github.com/php/php-src/pull/10220#issuecomment-1383789100) > and vote on it. > > So this is a first draft of my proposal which I'd like to discuss with > you: > > https://github.com/php/php-src/pull/10338 > > Max > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --0000000000008795a505f260f1bc--