Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127295 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 7CD171A00BC for ; Tue, 6 May 2025 19:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1746559882; bh=GplAl5DbSqrQvD+akW4ToPoGFk+Um/tqplA9R1yzmJw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=n2cffHidUrI3gF2GBu4axAWCFxWcBkxcGNsZzbCBTfpQygqTJNgz6or+7nusUgOTX pbR4tfCHtlm15V++9ZdBDg+naxQLNYff/x+Tb/M8ZwL3iekBYZryia7geuv8J8j8hP ichT4A0S1Hg4KnY3muucKd5v267Zo2aeh+/Th6xhnjRlitkWhC/yjwmTkQVVfBdSQI X2Gq9q7tGhQ05i1M7Co+dk1ndi0ewOL9l0M6RSQ7TL3ifpF1cRVPcNgmjJuZNagOba IpJAPP5THyy1+8LqiOaQh+d0pZnDkfHFKjqbS/VAcbwapBmGKcVSZ5b7ezQFpgoB8T JNLVc7JeAgrvQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CE9F4180077 for ; Tue, 6 May 2025 19:31:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) (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 ; Tue, 6 May 2025 19:31:20 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id F12F52540193 for ; Tue, 6 May 2025 15:33:33 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 06 May 2025 15:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=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=fm3; t=1746560013; x=1746646413; bh=GplAl5DbSqrQvD+akW4ToPoGFk+Um/tqplA9R1yzmJw=; b= lExROTSun18DiCZ1mcmS89X843cmR06NoeW4Pp4kk8fVx+WbIBrTzZOHFI8SF0ia zAcmewZgNRERbsUntl0yW+/KB92oOrGTTndyeRpe7P06oq7BQ/gdgm0UN98yomCi 5I2LA2PA56bQmWgOQSl4nuSa6wZR6aSIV0jXhiRp/d7ZylVFL3/nA3OnYfpfIGQ/ 81j7NEpFRJOws6BtZbnFsmNc5YpgXZKJ6YV9O+HjcMSgloYXf4g8b1BfhUk4l8Uk XCinCkkwHDTkDoAm3/ahOoM2XDGN4U05/+bNRPADHeuJ6e7MwhkdfDP4rRnDEuYR yaJf7/6fIpAEGo/yNZ9/Pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm3; t=1746560013; x=1746646413; bh=G plAl5DbSqrQvD+akW4ToPoGFk+Um/tqplA9R1yzmJw=; b=C7TK24LffUWBst7z/ 2J2E1Zmx0cW+JwXfYB6CcEwwwgP3DcPK4r8I+INEkoXsg2mkEFZa3BORjSJElUFM zae+kLNNoDZQwwFMZD90HbC7OT5GWzaFWC/lqw5TJjoTeuPKcYeMR0cfDQVKntpL jg/tb6o3WTPmyh0OFvLQQNt5gaMt1K14refXAIWDmPP/4/+mY3qiB2bNo80XW2MN 4vyIfBnda94boSmGuMUYYxOSCqEY0C8NGLJEqjRnM11J5gQyDOVCtBbj4YHf0W/0 LFVF7+IGGRt6mn3jW5/LJJcfvNlnHYgZK5lRWeO5MxiEyvLRjsx94fBiwJKPKLOx MNuQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvkeegkeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhf fvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhm ihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqe enucggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeugeelheei hfehgfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslh hishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 6 May 2025 15:33:32 -0400 (EDT) Date: Tue, 06 May 2025 20:33:32 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] Re: RFC: Nested Classes User-Agent: K-9 Mail for Android In-Reply-To: <681845d2-ff1e-4ab8-97b2-50fecfdcb62b@bastelstu.be> References: <9c4ac301-dfb2-49da-90e5-37a2824fc4e3@app.fastmail.com> <5b1e6d70-a1c9-455c-93d3-6b22cf1fef11@app.fastmail.com> <52d84a5b-09d3-4e42-9620-a62fb239c21e@app.fastmail.com> <09a82882-f1ee-4bdb-8a27-e46144a711f1@app.fastmail.com> <706e22d7-94eb-44bd-a280-f629ba93b630@app.fastmail.com> <03a5b9a8-9fe1-4656-ab04-dd58669488b3@app.fastmail.com> <158a5d7c-8ef6-4b5f-b8ef-593879a7a896@bastelstu.be> <72ef8352-2afb-4024-b4ae-857fcd94edd6@app.fastmail.com> <213a8711-adbc-42b7-bcb8-86e64cb22cf2@bastelstu.be> <5A723310-1AB6-4D4A-88CC-52EC4E81AE5C@rwec.co.uk> <681845d2-ff1e-4ab8-97b2-50fecfdcb62b@bastelstu.be> Message-ID: <91B29E1C-EA9D-4BF0-8D69-42B43820F574@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 4 May 2025 14:52:23 BST, "Tim D=C3=BCsterhus" wrot= e: >> It's also not a new problem: PHP doesn't enforce a file and directory l= ayout, and libraries can and do define things "inside" each other's namespa= ces=2E When declaring a class, you have to be aware of whether a class with= the same fully-qualified name has been, or will be, declared in another fi= le=2E > >This is correct, but all these other classes that could conflict are part= of the *public API* of a library=2E But now with private nested classes I = would also be aware of the private part of a library to avoid conflicts=2E The classes that you'll need to be aware of will exist whether this featur= e is added or not, and you'll already need to avoid conflicting with them -= usually by simply avoiding the main namespace prefix of the library=2E Probably they will be currently marked "@internal" or highlighted in docum= entation in some way, to indicate that they are not intended as part of the= public API; the only difference will be that now you'll get an error if yo= u ignore that documentation=2E Rowan Tommins [IMSoP]