Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129174 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 DA0E51A00BC for ; Sun, 9 Nov 2025 18:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762711353; bh=QZR3Nu1+A8BWwQsxbSJ95uzJ+08gHuSyn8Hiu+Bv6nI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N/r+hnd6X9TYWILsz8tfk5V3EUT1LYov8kaWTZLBA0lqFQxmEjWtaldZ/Lmp0HYZq LfD8Ezq3SymoMT505QOaZyngMUqOPZmbgm62GQ+lCKt++RL9KggTAW6Of+HGfdKJDX 2mk6I7/Y+L5CcBXBQ5U4+iCkDPEIpRTy/E50bfH7hPpa7zz8x5YuiKcAOA6C/YjpXV reh872htsMVrdgNc7MjTlAYhI4TVkdOsrxL64Qukyih6U7HjBVmMbPpPFJjJqo92Dx GVHndMv7YxzTqPOD/vOOeP7JO77XInZ7Rx/VcxO1VQbWVNSxqy2oXaL56+Rf+BUoBB 5yWab+qc+Fbmg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7A37218002E for ; Sun, 9 Nov 2025 18:02:32 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Sun, 9 Nov 2025 18:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1762711311; bh=BaNQTew2m5GT6rj6QGM7IVmno4klfWRWdKMW9EdW8Ho=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=HNcT4u3Sv3TBFU4mWr/OP2Q2PutuCiWPoPE0TbiV5ju+lYoGxdNf3fgB6zw2Y3Kfo xUmpjs+9yYu0mTtGp88xTPVVl/Vg6YkXDXR/PoFSCyMJ0y7DlmbG2JOF8qD4YFgxqf mLlt0XpPmHhn6chi88LdRCy4w/x3UiWteDY8fRxCD5FlKC/8mWQkevuCM3PzzoAOFp okciUDHxJlB81/S3/kTkZvBNlVHq6I0C24yO/z7bc+ttojANtgpn3lTmcWT5V0peuM e9HQr0+ePbtFslPIGg9as5TFYCw+8raHM+CQi4eUdAH4G3mbiDX0YemvUPrUU7fv37 Ogu/g7UrDt+ug== Message-ID: Date: Sun, 9 Nov 2025 19:01:50 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] RFC: Namespace-Scoped Visibility for Methods and Properties To: Rob Landers , =?UTF-8?B?QWxleGFuZHJ1IFDEg3RyxINuZXNj?= =?UTF-8?Q?u?= Cc: PHP internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 11/9/25 16:07, Rob Landers wrote: > I’ve updated the RFC and implementation accordingly along with some editorial changes. The RFC now mentions: > Combinations that mix protected and private with private(namespace)(set) are a compile-time error because their allowed caller sets aren’t subsets of each other. Which is not particularly explicit in what “mix” means. I initially missed the `(set)` in the `private(namespace)(set)` until I read the ML discussion. From what I see the RFC does not discuss the following at all: class P { protected function x() { } } class C extends P { private(namespace) function x() { } } and vice versa: class P { private(namespace) function x() { } } class C extends P { protected function x() { } } Best regards Tim Düsterhus