Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127513 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id EB6871A00BC for ; Fri, 30 May 2025 19:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748633256; bh=PqRdKlWIIrv0wGF30ijYmpTxxmVJHtLF8MNAoi/Lgos=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=j2Y6xyIuSuzm0Btmbf9pGUzvodhvepIFWvQtWnchT63nurHAmIRPOoEPr+cgfrhc4 xPUjj/AArL0xmsw8Q2E1nN9Vs5MA92NYHRa2WyWmy0i7jRPsZlQtKbIl4vS2jWxQSB 932voE3s89hB23UmFu/kriAYt9uOIwgdIXFULUMMgKRWndeYUGIOsYThKBwbZrfCJC ZYb5f93bLH/FIH61oJIpOHHD3Bt/9uqA+Nrf9fxmDpUtxmy6+JzIwDGeDlqYwwOIuH seAn9f7iY1k7Hgt2KiCSjnygdnUN+MOdBIeuJrgMxnic60nmwA4j6hgi4iYPO+YEPy Vz8mn0UlZl2dA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27D0D180061 for ; Fri, 30 May 2025 19:27:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 30 May 2025 19:27:34 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id D78C725401C8 for ; Fri, 30 May 2025 15:29:39 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Fri, 30 May 2025 15:29:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1748633379; x=1748719779; bh=PqRdKlWIIrv0wGF30ijYmpTxxmVJHtLF8MNAoi/Lgos=; b= QZKJtBY+Rm+N/KeesqzrF4WbY9QwWHk8N1dNfek8RC8yGExJClwu4RSv1ZSWo8qi 43LaNt+FDVhJvxYKnnpFOovV6tFwSj6pIdpzmrpCdiUmj0bGU4WHwzsFHiWTlxsI x8qx3ofc7OmKKXxmzmQDEDOZHXbLs7lbbenfM6JtCPv6NUjMgX9TR/Qv07C/Z4Ak y99OQlnVJNLjA71FJqO7ExOfgQ9WEv5y8kvstMnjGX14m5p/TsYPQqHts6W8MRzp efYUcD3+uyIqZwDjyoeJadz8dfbHBR91Fo6Dlfp3qeX1Cjhcxt4O9k/xm6Tuh7Be Cl0vQSepwW+UfZRI1FGWrg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1748633379; x= 1748719779; bh=PqRdKlWIIrv0wGF30ijYmpTxxmVJHtLF8MNAoi/Lgos=; b=d gemc7lvspsU7bU3+J21/IS5Lq9zySbHR3WzNxPmVsl7L6uAwjGxKRSnH0LykNf2L a6XS+qsOKnGwDoNtUKYIoKwB5GB4EOS9wE+UT20LPoLd0fDCCntZcV5/GqS0A+QD oxxr4n+EiEG3BPsFmExg4kksJZ0hgo3OzCq9zkkcS1DyuXH8EdpVy0m3iJIuxtIy glUQAEcYsCKSDqnvt2ffKbDbXtD+HS0zD6O9A2VSzT5w+rM3ornLZPSbart/iGlk lchB0EBDug4NNVD2lqxJ/AVRYxs+2sp7LX2LaISYOtFCMYnT1Y06ZwgbFfyVup8J xInfXf9IfU2DXsOeut4cA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgddvleekheculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefufggj fhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsuc glkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtghordhukheqnecuggft rfgrthhtvghrnhepuefgjeefgffhvdduvdeijefhfeefleeujeeihefftdegtddvteduud efudekueeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthhopedupd hmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhs rdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 30 May 2025 15:29:38 -0400 (EDT) Date: Fri, 30 May 2025 20:29:35 +0100 To: internals@lists.php.net CC: PHP Internals Subject: Re: [PHP-DEV] Module or Class Visibility, Season 2 User-Agent: K-9 Mail for Android In-Reply-To: <7F11844A-A98C-4843-BC94-815FBCD2B73F@garsi.de> References: <78641D8B-AF1D-4912-920A-D75A37C32F05@rwec.co.uk> <354cb888-97c4-4f8c-a0da-359d1e63c0f9@rwec.co.uk> <10D95B6E-094B-4EAE-A18A-AF6B795CB352@rwec.co.uk> <2adbff61-5e11-4d39-ab5c-d7950a4550a6@app.fastmail.com> <79E7FA26-2F5A-470C-B1DF-12CC46A08FE5@rwec.co.uk> <1c6dcd84-9016-48e1-971f-de7749cbdce8@rwec.co.uk> <44F59416-3922-4AF4-881A-C64F2C4E9345@rwec.co.uk> <7F11844A-A98C-4843-BC94-815FBCD2B73F@garsi.de> Message-ID: <7840468C-F60C-4A44-AE40-16F9007EF428@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 30 May 2025 19:21:08 BST, Alwin Garside wrote: >In the example above, I image calling or extending the `Foo::bar()` metho= d from somewhere outside the `Acme` namespace would trigger an E_USER_WARNI= NG or E_USER_NOTICE=2E The warning/notice could then be suppressed when exp= licitly overriding an `#[\Internal]` method with `#[\Override]`=2E I don't see any reason for the message to be any quieter or easier to over= ride than calling a private method=2E=20 Indeed, one use of an internal/module-private feature would be when the au= thor wants to split up a class that has a large number of private methods: = the new classes need to be able to talk to each other, so the existing "pri= vate" keyword is no longer appropriate, but the intended surface to users o= f the library has not changed=2E The user is making exactly the same decisi= on by ignoring the "internal" flag as they are if they use reflection or co= de-rewriting to ignore/remove the "private" flag=2E Rowan Tommins [IMSoP]