Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119361 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62428 invoked from network); 20 Jan 2023 09:53:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2023 09:53:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6B51418033A for ; Fri, 20 Jan 2023 01:53:14 -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_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-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 01:53:13 -0800 (PST) Received: by mail-ej1-f52.google.com with SMTP id kt14so12597652ejc.3 for ; Fri, 20 Jan 2023 01:53:13 -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=A0EdFCXrjOtJx4pgYZBcc14zKKTg8JLIcM+QgsvQA2U=; b=i5OUqCKr1mWylXf24F6yXBHQFbCLCkse2hC/yppkBMemPepp1ENlkJ+3H+xIT5aDv8 sJimEzJt1xp5IalXI99VRImwHgfnW5phywrpVpPUJZ/XO0vpet4jA6IW7ZeHpqoPxFaV adSy7gFvbsLi4RyPbNK+dzLYo9IDW7+hShgITEyG+d29WqWgBaA6XtkX8K2tNXf7eu9g qP5uIfOfy3ay8ENni2X8xMg82FrNEQV3mycYm5SdboCwQqMQm8AE/eny47Bj2UH7GKPx sWk47jrTx48hlfnQws2iNEL+C/kLBQk3lDeM2z+WSy1Q3XJ0L+jqGnh0Yf2A/i+RdnLz 2WzQ== X-Gm-Message-State: AFqh2kqD+e0QgIWI09r6tTzuzXxuriNJa3q0DTVbc3eBp2xubflQoT00 DDH2HS0g36wdjSvd2wQo78oH6t32XkJHlCrlxJqFJzgI X-Google-Smtp-Source: AMrXdXv3edHc4TvACR7YnAgSBLP/yL9ebRLYXjMzm4ZLBVg2WvBZsqRJbGcqtx5lv9s06xFG1lygnJoX5hOTqUyCqlk= X-Received: by 2002:a17:906:c283:b0:835:57c9:6432 with SMTP id r3-20020a170906c28300b0083557c96432mr1298356ejz.254.1674208392588; Fri, 20 Jan 2023 01:53:12 -0800 (PST) MIME-Version: 1.0 References: <192ba7b6-dcf0-e2da-c99e-cbad40519e27@gmx.de> In-Reply-To: Date: Fri, 20 Jan 2023 09:53:01 +0000 Message-ID: To: Max Kellermann Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000008533ff05f2af04d6" Subject: Re: [PHP-DEV] RFC: rules for #include directives From: bukka@php.net (Jakub Zelenka) --0000000000008533ff05f2af04d6 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 18, 2023 at 2:55 PM Max Kellermann wrote: > > Here's my RFC: https://wiki.php.net/rfc/include_cleanup > > I think that some logic behind this RFC makes sense but I would see it more like something for a new project. I'm afraid it's too late for PHP. At least doing that in one big step seems very painful and disturbing for not that much benefit. As it was said, this is problematic for bug fixes when merging up and it's extra hurdle for maintainers - read this will slow down the development. Also this is not something I would like to see in a minor version bump even though we can break ABI in that version but in general we try to introduce as little changes as possible for extensions. If anything it should at least wait for the next major version bump when extension devs expect more work to be done. Except that, there are few things that I don't like: - comments next to inclusion don't have any value especially in the way how it's done - it just puts few things that are in the header and sometimes that matches the header name (e.g. smart str...). I think comments are more useful in the actual header to explain what it is for which can be done in a few lines. It can be more detailed and doesn't need to be repeated... - some of the removed headers from libc should be kept as there's just a small benefit in removing them (e.g. errno.h) That said I think it makes sense but I think the disadvantages outweigh the advantages... Regads Jakub --0000000000008533ff05f2af04d6--