Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124758 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 9A7151A00B7 for ; Mon, 5 Aug 2024 11:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722857134; bh=uKSsbqgezEEQUEwmxyg1bDorLgoM4IehVMZ6gKGnHfE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=XOqMYySMQM2yUxsKS06CdHL+/hKwcmJcEw8mkD6Qnb+b4Sk5CJnOXqi+ysDKNReyb v1X5iTVRaWp1yp2mIs7xGDjeE44T9AupvvXTbAAt59YCivQLsa2YRzfypnDlombl8V gwb4Pe0oyDZf9nz2lVi0dOR/u3TdJdd5QFBourJZMsJE/7HhdJM+/Z/sGD6fgz6M3n 4ZNEmhsZYdGrkMXoCTpizL4W3Da2yxg2ATuuJ3CGP1guUa1C0w4fouSSf7zDtIrqMS 4pgLto7L09WQApvv/TkaSe/eiGhHFW2JLoxuBEq9Cwa04L+VfB8eIJlEv70HX5WT6A RHh4cK2puneNA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A74C2180055 for ; Mon, 5 Aug 2024 11:25:33 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 5 Aug 2024 11:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722857031; bh=uKSsbqgezEEQUEwmxyg1bDorLgoM4IehVMZ6gKGnHfE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=IXYv2O40aMXIlP7L/KtPoL9BMhfS2wEPEjtbPTFaUxXqcQGWU0niMJe26f8jtOT8g JswWd8eaq45RVTexVUeu5wTyK+T+YbqNCFVhK5BES5ZkvxLiVDDWhitntnEnYhOSb7 DWZw89pwlhhKksFmL7z7Q+EJz7KFnVoz+yxQHes/8VXjrXG1TYEqJIrDKQkT+8PrQt fiWGA2zVGmzM9uxxHepTnTDGrGWC6XwdZnbyG6arWKWaxwrO0jRdqiyW+e2JsknEij hQ1b0iyziwcm4Y+iTsWmroshKLu4Fha5a/6oAkBBa5qq6LrgsA7GUN8067fZOJF1h4 LN+o9W7iGfqGg== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id DF26710C033; Mon, 05 Aug 2024 12:23:50 +0100 (BST) Date: Mon, 5 Aug 2024 12:23:50 +0100 (BST) To: Ilija Tovilo cc: PHP internals Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) In-Reply-To: Message-ID: <73c0d611-16f6-ff3e-95a2-3c78c66d413d@php.net> References: 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=US-ASCII From: derick@php.net (Derick Rethans) On Fri, 2 Aug 2024, Ilija Tovilo wrote: > As for providing a migration path: One approach might be to introduce > an INI setting that performs the function lookup in both local and > global scope at run-time, and informs the user about the behavioral > change in the future. That INI setting would control the *warning*, and not the *functionlity*, right? > Lastly, I've already raised this idea in the PHP Foundations internal > chat but did not receive much positive feedback, mostly due to fear of > the potential BC impact. I'm not particularly convinced this is an > issue, given the impact analysis. Given the surprisingly large > performance benefits, I was inclined to raise it here anyway. I am surprised that it is that much of a performance benefit as well, but I am also concerned about the BC impact. But if that isn't too much, then I guess we need to consider this, but only for a major version. Not something I believe we can change in a 8.x version. cheers, Derick