Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119630 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75162 invoked from network); 1 Mar 2023 08:39:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Mar 2023 08:39:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E11871804D7 for ; Wed, 1 Mar 2023 00:39:55 -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_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-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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:39:55 -0800 (PST) Received: by mail-ed1-f45.google.com with SMTP id ec43so50654352edb.8 for ; Wed, 01 Mar 2023 00:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677659994; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3RJcFbC5RR2OO/lGFOQ92PZ6zPtzH8Swc55otSK90d4=; b=W9iFkNRbyQ8IMb2xx3xO/vddHX3SgHQ/1LvRGbDWpMVYuOsKX4oGiCxwotd1KDf/1W XxLmrJlY8prE+xiJ+0zdIzJ0Lx9Bi3R5IH3PwUkJhzte6fK20y5LHq9rPqn/FXRAMvv4 Sf3fan2nmxo2t3MfPLkn+Qss1sLzxfc82WdhUrD8oxJqBiN6SBIWda00n0Sxvg+lZ4aW fRBag3f/t9oA3k9FgWVgPGQwnta8E75NA0TJoe5fW+KFJXJEnVQGj/iBAm6khif2MacG 1GO3Ct3f2v1BpP7ufJNr0c3zUgouxJl3w3SrsBjsZUOZTRqeO4Gll7ozeHHSPlhXFglP YAAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677659994; 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=3RJcFbC5RR2OO/lGFOQ92PZ6zPtzH8Swc55otSK90d4=; b=71aPhuHAgHLCk8wTlOPJWKrwTvgTy+KGYQLkki1gtvNcwjroQZh7qJ4ZPOf7FYKvEq g3D6aLAQzbT9rVO2I6L21RVFephCfgrvAd43Xure3Au4VyQCNVQoymgFIbUk+wcGeonQ Eo0RFhVo9D7LRG/ax/dJgwGe4KKRfL2VE8f9fBInzrJl6xFDw3Behi0AtGPYbB6w9PTU qLrpVZZxUA1nk6oLKjHHf6sAfWj0CDY7bEzyJJNTAdxuWVv95y6lMCuHQzBjj62Wq2Sw S6Hu2MP0QWLzco3jqaugRf+f2z7fjyQH4kFO7/cDthcBzfkwmvLMv8zkOZ7R1D7zc//f OfLw== X-Gm-Message-State: AO0yUKWOikXxlU3i/P0ZWbUXHZ3zzLUDN8YbDQFPMUqSuztk8ROyewVF IAQkyxYf/4rjLMVpdkhuUlNFUtT/EE3+WGJbL38= X-Google-Smtp-Source: AK7set+YUV7V2CH7fmxRAiOXiVgg7CzETyV45kvIXXni3E6e36o6/KJLfZXmBreUvoP0Xc6/BcsxbQhvJPaFgQ6ebaI= X-Received: by 2002:a50:875e:0:b0:4af:5779:ac6d with SMTP id 30-20020a50875e000000b004af5779ac6dmr3410860edv.3.1677659993965; Wed, 01 Mar 2023 00:39:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 1 Mar 2023 11:39:42 +0300 Message-ID: To: Niels Dossche Cc: Max Kellermann , PHP Internals Content-Type: multipart/alternative; boundary="000000000000fe86ba05f5d2a7f5" Subject: Re: [PHP-DEV] PHP code refactoring (was: include cleanup) From: dmitrystogov@gmail.com (Dmitry Stogov) --000000000000fe86ba05f5d2a7f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 1, 2023 at 11:34=E2=80=AFAM Niels Dossche wrote: > On 3/1/23 08:42, Dmitry Stogov wrote: > > On Wed, Mar 1, 2023 at 8:37=E2=80=AFAM 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 int= o > >>>> 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/4177257178d6a1a44f0aa6d6b23d02b91e0= a58d3 > >>> > >> > https://github.com/php/php-src/commit/9108a32bfe881c3b1e2f3b2949b0e9fe1b9= c6dda > >>> > >> > https://github.com/php/php-src/commit/07fe46fb5db9d6f34e72f513ae053fc8c9a= d67a > >>> > >> > https://github.com/php/php-src/commit/900472536775b71d5d72a0d66eaa46ae7c7= d7ad9 > >>> > >> > https://github.com/php/php-src/commit/f0cfebc2b867a6a96a88c4526cf9f3b4cd0= 1f04b > >>> > >> > https://github.com/php/php-src/commit/f079aa2e242b251c6297bddf5365c33c126= b7dcc > >>> > >> > https://github.com/php/php-src/commit/b14dd85dca3b67a5462f5ed9b6aa0dc22be= b615c > >> > >> ... 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/9108a32bfe881c3b1e2f3b2949b0e9fe1b9= c6dda > > > > Hi Dmitry > > I made that commit. > Please ask me the questions you have and I'll be happy to answer them. > See the comment at the commit page on github and let's continue the related discussion there. I think github sends notification emails to commit authors. You probably missed it. Thanks. Dmitry. > > 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 (t= he > > 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 > >> > > > > --000000000000fe86ba05f5d2a7f5--