Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119628 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69091 invoked from network); 1 Mar 2023 07:42:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Mar 2023 07:42:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BF49A180504 for ; Tue, 28 Feb 2023 23:42: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,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-f47.google.com (mail-ed1-f47.google.com [209.85.208.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 ; Tue, 28 Feb 2023 23:42:13 -0800 (PST) Received: by mail-ed1-f47.google.com with SMTP id s26so50023970edw.11 for ; Tue, 28 Feb 2023 23:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677656532; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ER8H27HnPc6cv3ScaA6UjN2nMwOfr+FgPOVB+7E2w4Q=; b=hCZHHs6DUbiIRvuqKlgfmS/4C6mFz5JDJM9ydAaZsS+1Y62OpZB6b2msBNqI0vzjkJ IhkPr6K5LUKiN31D0PNvv6VHidCyJvN5TkNvACSI/7It46uYsPAxoD2R/WfvWey9zAkz IrA2z2ftFXOEhamCNh1IhyLTo4jpntKeEdvVG9xo5S7Jn4RwGblfQOrkYVvQS2Vi152N 6PaXAl+uTac51UzfYjl4eRAFc3bq6LqC4NYwFBqBOBw7/gnR47Z7BqlfXHBR/1qJQ+RN O+Lju7keRH9hM9sbsH31pRNVh8om2csgEZ/jpjktwUuubVYvUz+bP5SztA1JG/VellbP LnQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677656532; 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=ER8H27HnPc6cv3ScaA6UjN2nMwOfr+FgPOVB+7E2w4Q=; b=d6VmSYmXEUbVfhqn5woba3TY//KNS/TnfuBolHRBwEyb21MTh/8mAT255VmMMudHdI +xi8vtSQZCuu81REOfA8BrI0wJpp88e3rmaTtuvix59ni0MTPqMHxxL73bZ4tQQYIcec uBu0mbRgGT384wtvwq7dz0FevAtCYgUEAADG+5+z0WDEoSiAKyEfpiSiH3uyMrEcL6e5 CA/hYkDkXlDvD+ZdWt/e1ebfhahqaosm+pDKcUcJWxxP7TC5/guZF1ho8DsDiQYQnCqG A3mESxG1Hs0nJrfq7iyKqPPavHPE8vwPlZ/VdamXiatd1skv4MtH2nevGWYqs+j5K3nL M1wg== X-Gm-Message-State: AO0yUKWeyKbJWdSX5z61iIXmjlQVDdGsq7E7ucAK4QS8fCp2Q/fNAF5z 9G4E5Nwv1M9jazcUWDIsCOxmCEMTGjv5Gq55tbqjmoV/Syk= X-Google-Smtp-Source: AK7set8bzhhZ57uG7ERb1Gh8e2ocYXEAN+Ymq7Xv3TxBo980jBtdKn7Ld+Sjofi4GALFc8oIWEFHJvsPoiZyYlY+/wA= X-Received: by 2002:a17:906:c7c8:b0:8b1:30da:b585 with SMTP id dc8-20020a170906c7c800b008b130dab585mr2759185ejb.6.1677656531826; Tue, 28 Feb 2023 23:42:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 1 Mar 2023 10:42:00 +0300 Message-ID: To: Max Kellermann Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a27ab705f5d1d90a" Subject: Re: [PHP-DEV] PHP code refactoring (was: include cleanup) From: dmitrystogov@gmail.com (Dmitry Stogov) --000000000000a27ab705f5d1d90a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 1, 2023 at 8:37=E2=80=AFAM Max Kellermann wr= ote: > 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/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/9108a32bfe881c3b1e2f3b2949b0e9fe1b9c6= dda > 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 > --000000000000a27ab705f5d1d90a--