Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119623 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39046 invoked from network); 28 Feb 2023 22:38:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Feb 2023 22:38:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B4A6A18054C for ; Tue, 28 Feb 2023 14:38:02 -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-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.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 ; Tue, 28 Feb 2023 14:38:02 -0800 (PST) Received: by mail-qv1-f45.google.com with SMTP id jo29so8076719qvb.0 for ; Tue, 28 Feb 2023 14:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677623881; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=F/2V5f6Q9RrAG52VxQm+ffcnxN/LnFZS0+wENcBxtmM=; b=EHns2uEkBpOgg7/V0bsOE9UBRgPzwqHyEEU1/9gp8PQcZPYLNh7btexRKgZWttS4iK ja0iCjBfh5YLpi9rt4E7AEfdFQk1quXbS4KfoBRwXQzO/IC7ZJgsS4wHuyDq6sFJTylt VGD43W+P4EwfhyyhLOBlr54NAjo1mmqwDgS3RIZermV9x2rONfp4o8E3PqJZst3m5qYG CBdIXjOvVraMMe5kCe0wT3ZIlyVA8jqq/C2A5CayIOe2yWVR9CMouJ8JzYL4wysoEoLr aHE7fVtuScbOusS1zFAxVneEVNIyZLs18zGf8NtpgxMbbH8vcFI4YNAyLsStURM99NXH YWCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677623881; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=F/2V5f6Q9RrAG52VxQm+ffcnxN/LnFZS0+wENcBxtmM=; b=f7iqtxWytxBkbWNy+7roCE6GDFka9ySBlw4QXhLzGKJYbtVgKDrAGRJCNhGu1BO9iJ c8eWb84zlTjbAxfnUJdTlcTygqWCis/wnrgm6XMqWLNpTAGmbbQ0Tk0TAwOY7I4jhDq1 aNUyHPJz2Db5dYIhzs/kmvyA2kBhf94WsSMWDzNwen7RJO6jgJnq5eh1cSQTyNzgKfxG U/WW+B3PyOhDOtymfTgJ1U4VrWZKtves0hOxL8/l6av1/LYFEjYuVJDBFb5kMXpQ06+Q yDXACEjH9lTV+UvDhHwaA1YTywGHSOgo26c1ok3TJ8dQVpP/VhrEmJMwn8RSsolg+dRu TlpQ== X-Gm-Message-State: AO0yUKVXL3qw/IkfqogodHWZtR3ByBSA9nk4KY8JDNUMYJakHGx6y6gP VH5GHiz52pwgW6N8yalLYB1y9brksSo= X-Google-Smtp-Source: AK7set8UMIULNC+iqI9RVFxa+KBMWQtALMH6xaAULuXqEnsKEXexWv/VJT+NTkxjQjPBxVdv8j8IAw== X-Received: by 2002:a0c:9c0e:0:b0:56e:89b9:9a92 with SMTP id v14-20020a0c9c0e000000b0056e89b99a92mr8411717qve.0.1677623881502; Tue, 28 Feb 2023 14:38:01 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id j3-20020a378703000000b00742bc037f29sm3550358qkd.120.2023.02.28.14.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 14:38:01 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id D17FE27C005A for ; Tue, 28 Feb 2023 17:38:00 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Tue, 28 Feb 2023 17:38:00 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelfedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdfpihhk ihhtrgcurfhophhovhdfuceonhhikhhithgrrdhpphhvsehgmhgrihhlrdgtohhmqeenuc ggtffrrghtthgvrhhnpedtjeejvdekffffvdegudehheekkeeivdegheekvdehuedvvdei tdfggfekueduudenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhphhhprdhnvghtne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrihhl odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufedufeeludekheeiqddvhe ekvdegheeikedqnhhikhhithgrrdhpphhvpeepghhmrghilhdrtghomhesnhhpohhpohhv rdgtohhm X-ME-Proxy: Feedback-ID: id4a9467a:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7EBB731A0063; Tue, 28 Feb 2023 17:38:00 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Tue, 28 Feb 2023 23:37:38 +0100 To: "PHP internals list" Content-Type: multipart/alternative; boundary=f17794fb1b4e463399d50286a75ac47d Subject: Re: [PHP-DEV] PHP code refactoring (was: include cleanup) From: nikita.ppv@gmail.com ("Nikita Popov") --f17794fb1b4e463399d50286a75ac47d Content-Type: text/plain I'm a bit out of the loop on the higher level discussion, but as I got named dropped here, a quick note... On Tue, Feb 28, 2023, at 23:21, Max Kellermann wrote: > On 2023/02/28 22:31, Dmitry Stogov wrote: > > https://github.com/php/php-src/commit/0270a1e54c0285fa3c89ee2b0120073ef57ab5fa > > This kind of change was favored by a supermajority. > > You argue that this supermajority vote is irrelevant, and formally it > indeed is, but pondering about formalities is kind of ignorant against > the now well-known community opinion. > > > https://github.com/php/php-src/commit/b98f18e7c3838cf587a1b6d0f033b89e9909c79d > > No vote was made on this, therefore this doesn't violate any community > rules, does it? > > If you think this should be reverted, explain why. > > > https://github.com/php/php-src/commit/42577c6b6b7577c57c161ee4a74cb193382bf1e0 > > Favored by supermajority, see above. > > > https://github.com/php/php-src/commit/c7637ed1c03f556c6fb65884cfc5bfea4920b1c7 > > No vote, no rule violation, see above. This commit broke a valuable debugging reference: I used to often check these defines to determine what a type code means. If you get type 18, good luck figuring out what that means now. > > > https://github.com/php/php-src/commit/371ae12d890f1887f79b7e2a32f808b4595e5f60 > > As you see in the commit message, this implements an (unwritten) rule > cited by Nikita Popov (which is now written as of > https://github.com/php/php-src/pull/10630). I personally don't agree > with this rule (there's a thread on this mailing list about it), and I > would favor reverting this commit - I only submitted this trying to > help with implementing a rule even though I don't agree with it. This is a pretty cherry-picked statement. In that mailing list thread I explicitly pointed out that while this is the rule (and if you introduce new code, that would be the convention to follow), that does not necessarily mean that it's a good idea to fix existing cases that don't follow it. I also pointed out that for public APIs, this is a very insidious API break, because it doesn't make using code fail to compile: It just silently inverts the result from it's previous meaning. It looks like those parts of my mail just got ignored. Regards, Nikita > If this gets reverted, then https://github.com/php/php-src/pull/10630 > should be reverted as well. Again, not my opinion, I'm just trying to > help implement somebody else's opinion. > > Max > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --f17794fb1b4e463399d50286a75ac47d--