Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119629 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73560 invoked from network); 1 Mar 2023 08:34:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Mar 2023 08:34:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B20CD1804D4 for ; Wed, 1 Mar 2023 00:34:13 -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,NICE_REPLY_A, 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-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 ; Wed, 1 Mar 2023 00:34:13 -0800 (PST) Received: by mail-ed1-f44.google.com with SMTP id ec43so50600571edb.8 for ; Wed, 01 Mar 2023 00:34:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WjKXTptTzGWgpWH3Koqh2GQdhOLGQS3NUfrIp+tSuZo=; b=ETJpCBxFlVd8NrZ7GzlWbw9REAV8ZDP5m5mqhVj1KDMr/Cc9QV1zD34waoW9YUqaUU WE2YnLB/7KsObyCNJ26u/TY8IFXhQ8aERarh5thrBIf0O3ltTpMf7Eywjaag7vJTBuM+ aZAF8CTcbr0AiPUzidmiV44B1n0ugF9Vj0uKS0rZKrDFX3H1cW2hE8c2SVN2cfLiY56x LxHIQl326f3RIbRC3sDoZkycvVZEIV6WdGRi33mphwRMCfNzHbSNlLvD4xMcTKIWeSyV vIYlrEFnpVO/m97H7GwX1GlquyClpgosUDK+oJmLOwrU0v7K2NeIR0ZPYi3L6UbZy2bf fvAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WjKXTptTzGWgpWH3Koqh2GQdhOLGQS3NUfrIp+tSuZo=; b=4LmgRfTJQPTIduCeruNaLi7kM9lVqqo9hOSZsgZW3CYE0WcDDG+TWO+O+ubevQBt3B koq9qmssQBAk1Qdf3BxFxo2QldD/tdVMO2lRkxBfbEaSkyHJUr7e/lXqr0arDF/xNJXB oAvWy+fW82Mh17nivjrlEAMPTiZc5RgtnruQBN4rzJVwfAaqpgIagy6MHfi5aUj2bbUj Xeb8EVzkIxSW645tDaHcauwXCuKHRN7QUawOVhdl8tR1a/vkjYEi3hKOOA1jOiy6Uosg xpxAYGqRnWcnvKQuk8BDPmmVwSb3pFQwvqS173atE4x2chZgfwHrtFzoA9EdU+2daaTf bOxA== X-Gm-Message-State: AO0yUKWtqKvAwzH+7JhRYd5KYxwUWTO7V+LEKl3e6qFstPZzdP1YKSa8 an1h/m5lBAj+xKaGpLGquIRHDvwChhA= X-Google-Smtp-Source: AK7set8y18tMo/hC5gyJd30g54hvA8PpLHzqtj2fBojPOObOqoBJPa6wkcfHbxYB3Ty3XGm+bL+lQg== X-Received: by 2002:a17:906:6090:b0:8e3:8543:8e71 with SMTP id t16-20020a170906609000b008e385438e71mr5845687ejj.40.1677659651904; Wed, 01 Mar 2023 00:34:11 -0800 (PST) Received: from [172.17.72.72] (nata222.ugent.be. [157.193.240.222]) by smtp.gmail.com with ESMTPSA id ky7-20020a170907778700b008db605598b9sm5579230ejc.67.2023.03.01.00.34.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Mar 2023 00:34:11 -0800 (PST) Message-ID: Date: Wed, 1 Mar 2023 09:34:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 To: Dmitry Stogov , Max Kellermann Cc: PHP Internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PHP code refactoring (was: include cleanup) From: dossche.niels@gmail.com (Niels Dossche) On 3/1/23 08:42, Dmitry Stogov wrote: > On Wed, Mar 1, 2023 at 8:37 AM Max Kellermann wrote: > >> On 2023/02/28 23:33, Max Kellermann wrote: >>>> Include cleanups RFC was rejected. >>>> No refactoring RFC was presented. >>>> A lot of changes that affect all core contributors are committed into >>>> master. >>> >>> Do you mean to imply that code changes that do not implement RFC or >>> fix a bug should always be rejected? >> >> CONTRIBUTING.md says: >> >> "PHP welcomes pull requests to add tests, fix bugs and to implement >> RFCs." >> >> Indeed it appears Dmitry is right - code refactoring is generally NOT >> allowed (unless there is an explicit RFC vote, and I havn't seen one). >> >> This implies that all those commits (and hundreds of others): >> >>> >> https://github.com/php/php-src/commit/4177257178d6a1a44f0aa6d6b23d02b91e0a58d3 >>> >> https://github.com/php/php-src/commit/9108a32bfe881c3b1e2f3b2949b0e9fe1b9c6dda >>> >> https://github.com/php/php-src/commit/07fe46fb5db9d6f34e72f513ae053fc8c9ad67a >>> >> https://github.com/php/php-src/commit/900472536775b71d5d72a0d66eaa46ae7c7d7ad9 >>> >> https://github.com/php/php-src/commit/f0cfebc2b867a6a96a88c4526cf9f3b4cd01f04b >>> >> https://github.com/php/php-src/commit/f079aa2e242b251c6297bddf5365c33c126b7dcc >>> >> https://github.com/php/php-src/commit/b14dd85dca3b67a5462f5ed9b6aa0dc22beb615c >> >> ... should not have been merged! >> > > At least they should be reviewed once again. > I already have questions for the > https://github.com/php/php-src/commit/9108a32bfe881c3b1e2f3b2949b0e9fe1b9c6dda > Hi Dmitry I made that commit. Please ask me the questions you have and I'll be happy to answer them. Thanks Niels > >> Where do we go from here? Really revert EVERYTHING? >> > > I'm not too paranoid about small changes and changes in extensions code. > I didn't object when you proposed small refactoring steps. (e.g. adding > "const" and "static" or small include clenups). > > >> (Reverting just my code refactoring changes but nobody else's would >> make no sense at all. Don't make this personal.) >> > > This is not personal. I saw you are smart and may find and fix not trivial > bugs. I assume all contributors have good intentions. > The problem with your commits, that you started rewriting EVERYTHING (the > core parts of php) without a deep knowledge and without agreement with > mainteners. > They already started to break things (See Nikita's notes about RC > debugger). > Formally they were committed after a declined RFC. > > I already proposed a way that might work. > > Thanks. Dmitry. > > > >> >> Max >> >