Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119367 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76541 invoked from network); 20 Jan 2023 11:51:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2023 11:51:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 59C5E180544 for ; Fri, 20 Jan 2023 03:51:11 -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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 ; Fri, 20 Jan 2023 03:51:10 -0800 (PST) Received: by mail-ej1-f43.google.com with SMTP id ss4so13233895ejb.11 for ; Fri, 20 Jan 2023 03:51:10 -0800 (PST) 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=BV+zJMHWA/+LRpVOPnLCL8ARp92kkEe6AG4Cmbqxe+E=; b=L0TVEZ7xGGQlxiZqcShhqF5XEC4xms1BeWzDEKXlKmITThD1GJ5T/xsPjk5U9ZBLBW 1kaHHbki3JvKeWpYgaccyB8YkUj5bWyGNvKgRx2u9Ar+PiVOtCs0+mtv34Q+3QLQ0Sgb RhoHJDgEVImtJwoZvIflr8XMIO/s5Amd3odZzs3Rosj+8Rw6ABcRcLUNtc99X+aBrPBu 1of1026s6CwuLnwOF15dsyilzIkUkQTeaxNEnUCa5CxO0fXEnhMD6XvwaCIJ+SMawQEe um20qNmj+7qzJLFyHIKaZUZpL4pzXXcitXYwLMDzGHgXj1dQMVv4Cm3y7EKsGuYSif8G WjXA== X-Gm-Message-State: AFqh2koIgM5IMOTpcclI82UyudaC4vHq9mLd7LJOu0uxO+ezdD1TtlqN xjZDs0b2pTtRIHoOlpVLhHo7/tfyi4rJ9i6oBL6Kubla X-Google-Smtp-Source: AMrXdXtu6ZQDh//ShbcBW6aUqjgYN5y55QIo7CTf4odNRq9SoPevz0eAvNzvTH3F2gncaql0xCHt3JOPh3u7+uB18Jw= X-Received: by 2002:a17:906:2447:b0:7c0:f45e:22ff with SMTP id a7-20020a170906244700b007c0f45e22ffmr2211230ejb.104.1674215469526; Fri, 20 Jan 2023 03:51:09 -0800 (PST) MIME-Version: 1.0 References: <192ba7b6-dcf0-e2da-c99e-cbad40519e27@gmx.de> In-Reply-To: Date: Fri, 20 Jan 2023 11:50:58 +0000 Message-ID: To: Max Kellermann Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000056b4bd05f2b0aa0e" Subject: Re: [PHP-DEV] RFC: rules for #include directives From: bukka@php.net (Jakub Zelenka) --00000000000056b4bd05f2b0aa0e Content-Type: text/plain; charset="UTF-8" On Fri, Jan 20, 2023 at 11:15 AM Max Kellermann wrote: > On 2023/01/20 11:52, Jakub Zelenka wrote: > > Reduce the diff to absolute minimum to prevent potential conflict. I > think > > it would be more acceptable if there was a plan that will get us there in > > multiple releases rather than do one big bang change. > > My draft PR currently contains 104 very small commits, one for each > library that I fixed. > > That's exactly it's too big PR that is changing too much which might result exactly to the mentioned concerns about breaking some untested builds and it's very hard to track for dev what actually changed. > > > That said I think it would be maybe more sensible what I mentioned > > above and that's to split the work to multiple steps over the years. > > I don't know what you mean by that. Cleaning up a code base is > incremental work; I have 104 of those splitted steps in my branch, and > many more steps may follow. This will take years, or rather: will > never be finished, because code can always be improved some more. > > Do you mean I should work more slowly? I should submit my patches > more slowly? In smaller PRs? Wait more between PRs? > > Yeah exactly all of that. I looked to the PR and it's combining lots of different changes. It's mainly because all changes in "zend.h" and "zend_API.h" are done in one go. I think it would be just better to propose change of a single header replaced in them instead. For example just remove "zend_alloc.h" from "zend.h" and all needed changes for that. Then wait a month and propose removal "zend_gc.h" from "zend.h". Then wait another month, propose other include and so on. It will probably take years to get all changes in but in this way it's much safer, more in my opinion and. I would also suggest to limit any re-ordering of headers as well as the mentioned comments so diff is minimal. By the way all of this is just my opinion but think that less invasive changes might more likely to get this accepted. Regards Jakub --00000000000056b4bd05f2b0aa0e--