Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125137 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 qa.php.net (Postfix) with ESMTPS id CA7491A00BD for ; Fri, 23 Aug 2024 13:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724418639; bh=853HZqvZe22ceAX1nLtiyuM6gGuhGVSIr6/syjN9zpk=; h=Date:From:To:In-Reply-To:References:Subject:From; b=TBcwG1PNmTAUrfhqqqr9DnbbaO6chWJCVLgJyOXvG6F/ex8phtjWTJ7QmYUVw12hD SpSnnMPDxRweiBRrJL8VvCP1A3cgd1mKG5xf+kA1X/nIPfFH1qrB1yfYeG/YS6IVEM Q6HOSkJd7ItQym9UHFUj4KgDygW4UfcJHAvwhJwacNuEHKC1vEidkYWpFMZoBxKgEw AEdDl/NVcfgX9NMoIXv158CvDR5m9VWSrMm/7L5mx/WyC6ShZY5DqPIiGmT8tCoMxX VCCdL4dKSWB/NhRO0UiIk+ALmZkNJTe8OutZcyhtFDcliP85LoRlYe1WLwRlr9LEDF Uyeb3pxW5ycTA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 77794180071 for ; Fri, 23 Aug 2024 13:10:37 +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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout2-smtp.messagingengine.com (fout2-smtp.messagingengine.com [103.168.172.145]) (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, 23 Aug 2024 13:10:35 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 3B7C11390040 for ; Fri, 23 Aug 2024 09:08:42 -0400 (EDT) Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-03.internal (MEProxy); Fri, 23 Aug 2024 09:08:42 -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=fm1; t=1724418522; x=1724504922; bh=NWHIYxebzWgrPAfF25Jl4FGCnZ7DDLaoyuHu0cWWD2Y=; b= pG/7Ub/88io9ePankA/rNCjaAb5i9i+H9OX1FGSLrqZuts5gc7TRvEa+4dUUQiF5 ny+u9Ma7un0xLNnv6vVVZ53lvOJzvkITTeDfe55Wsg6R/xGrkj3cvV5WjytXE76+ gFxn9Iv1zOV5B881P4aC3p8JrSPd4A5bNHtDkcbQ2CPGKbumQbfaKVsxcZgiVeuM mBEVd9XPatrY5FcgCfIShAdGn66tvdWJR1pGE3hkY0TDcQkGKU3BXKZtsnS0J5Fi QvCFKl2SMLraVadjrlHYRZqtaG9NkZrT6lJXk1+ExBUQLjVrBLF0JCLKln7dr527 1y/VOwgNsV9QG1AaPUAUQg== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724418522; x= 1724504922; bh=NWHIYxebzWgrPAfF25Jl4FGCnZ7DDLaoyuHu0cWWD2Y=; b=T g65Hs4laOHCbAGH4MsiwTl+DCRVT5VwrVfAd1q1RZYW5C6XexObhrclCjKd5VckG 9FFwiCpt8qLKRhughgLt/8SPjBXfwVRRcltGowInL3CwMEE8LLCBAz6TiIRb4HxZ WDeA1hJ494F+Q1hGRD5utJdV2tKpY2A1R2bKXIOZJRnw3ZxsB3ZwcwmCXB1Lg3Ax 0vang1ejN7RfO/JmFKE1dY7rgaVoNDja3c5UHQpeJlT8tl54WjjyuVIJhCvzfxxl 2CHRXuZZx3RShP55xkQjhn/0thaLyg2C1YEnIQW/iivh+ML7Tl2CWOMAQS/pNHiG /kV9phjfkoHw/Q1TUc0bQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvvddgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffoh hmrghinhculdegledmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredttden ucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsoh hprdhphhhpsehrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhepleevvefhtdev uddttedvudeiudejfeduteehiefhkeetffejhfekkeevhfffgeetnecuffhomhgrihhnpe efvheglhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtoh epuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhi shhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D91673C0066; Fri, 23 Aug 2024 09:08:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Aug 2024 14:07:14 +0100 To: internals@lists.php.net Message-ID: In-Reply-To: <02F24EA6-9407-4E3E-937B-F4FE3393DFC6@newclarity.net> References: <846D7756-712B-4A7C-9FC6-DB9F858836B8@rwec.co.uk> <838adce3-12da-49f3-88f2-883d63e93e89@app.fastmail.com> <86C995C8-AFF0-4E4B-8385-69BC701B887E@newclarity.net> <5BE5A0A9-BCB5-4E2B-8F11-1EDF49884BE1@rwec.co.uk> <02F24EA6-9407-4E3E-937B-F4FE3393DFC6@newclarity.net> Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Content-Type: text/plain Content-Transfer-Encoding: 7bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Fri, 23 Aug 2024, at 13:45, Mike Schinkel wrote: >> On Aug 23, 2024, at 8:33 AM, Rowan Tommins [IMSoP] wrote: >> On 23 August 2024 13:04:22 BST, Mike Schinkel wrote: >>> And how can it occur without an explicit `use AcmeComponents\SplineReticulator\Utilities\Text\Text` statement, which I proposed would override the automatic `use`, anyway? >> >> I'm not sure what you mean. Right now, that's the function name that would be looked up for your example code (other than a couple of unrelated typos in your example). So if, for some reason, someone was relying on that, their code would break with your "automatic use". > > I must be missing something. Can you give a specific example showing > how the automatic use would conflict with something other than a root > namespace? You already gave the example yourself, you just misunderstood what its current behaviour is. Here it is, with the typos fixed: https://3v4l.org/6eD3N As you can see from the error message, it doesn't look up "Text\strlen()", it looks up "AcmeComponents\SplineReticulator\Utilities\Text\Text\strlen()" Or to be even clearer: https://3v4l.org/ojVcP