Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120025 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89596 invoked from network); 13 Apr 2023 10:39:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Apr 2023 10:39:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E1F1F1804D7 for ; Thu, 13 Apr 2023 03:39:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 13 Apr 2023 03:39:46 -0700 (PDT) Received: by mail-wm1-f42.google.com with SMTP id v10so1561117wmn.5 for ; Thu, 13 Apr 2023 03:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld.be; s=google; t=1681382384; x=1683974384; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gXrLSQ7KisAQqOpl5ZQoGK56p/UPGILcZwiBW7ZnJyQ=; b=SUqF0nBRAxVYu1q7BaVvBZ7RcP8PfS9GbeDbag4XpBrBciW1Rk2vw2SRdGx4c3mLA9 mFN1P8/In/V2EgCGt2xdbcjwBoenK7tXL4bWoIMYwnv2TT6sv9a3vMCk4SbrqoE0gs+b L6b6sf7z9/czC00vI+L08qEgQYSOcawaIPRl7ffeMLoE/9gqdzYdPEk4oQIs+2LsEvrd 3xX4BAgn+MitKzQ9RZPDTpmSXCFE0JUfF9PtGxwN8Q9864XIH/shIb9KzQWidnhlgo2F Ym3xULsssj4hbY+PUiCt1ck59SfavVChp0+ngu/U8C3ehlhG5EaQP+7XfGPEh5GK3qGB ztRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681382384; x=1683974384; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gXrLSQ7KisAQqOpl5ZQoGK56p/UPGILcZwiBW7ZnJyQ=; b=MN7umtFQ8oNSaBoUdJ+Uk/CM4o6C5cuGlY4L1EhShlRkD70dXt/WXkPVtCQ1hq2ZLt 1H0H0W8N8IfkbNhuNrFFMQPNyPVpXjk0xLv8sypkmk4+dRWHovRzhvwbSOJd+SsJfMeO C7naQCI8UXF23hPjzW0va+TriXpF1gFWOKRQURbncVBv7byTxAZ1+Gn8VJ2ImSaDqlHQ nLQNP6Xwb4s2YKAaLJdvVzQdtH2nc9YmDfYbYa3gEz2SpMjsN1ckIiUYnRxrWEeH30nr F1GsxaZVP+NHPLNjmIumzuGj1JY2tK5PjMOO2+xbS4Ui6mIlX8vmNj9u5oXA57eri5D+ 8k+A== X-Gm-Message-State: AAQBX9dVr4RiqQFD5pGS2h3V7x/TX3AVnIJr8oKjte4steTg+EBeP7KJ K4wb9X8teTGOQ+zs5kjkXwnBgHjE4jNHoHc2Uu6sSw== X-Google-Smtp-Source: AKy350auv5EjjFY9WyE8MpnKVe7GB1auSvMWfvueAwY4A0PmUJ18OW2oEsOp2gwq+hFsiqtQ7pVbuA== X-Received: by 2002:a05:600c:21d8:b0:3ee:1afc:c15 with SMTP id x24-20020a05600c21d800b003ee1afc0c15mr1392607wmj.33.1681382384198; Thu, 13 Apr 2023 03:39:44 -0700 (PDT) Received: from ?IPV6:2a02:168:4b6e:0:e80e:3b9:3dc6:a0ff? ([2a02:168:4b6e:0:e80e:3b9:3dc6:a0ff]) by smtp.gmail.com with ESMTPSA id s9-20020a05600c45c900b003f09d51a4edsm5145920wmo.48.2023.04.13.03.39.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Apr 2023 03:39:43 -0700 (PDT) Message-ID: Date: Thu, 13 Apr 2023 12:39:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: fr To: internals@lists.php.net References: <3b7db03a-1cad-3762-b0ea-d33618be9644@gmail.com> In-Reply-To: <3b7db03a-1cad-3762-b0ea-d33618be9644@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading From: j.boggiano@seld.be (Jordi Boggiano) On 2023-04-12 22:26, Rowan Tommins wrote: > I could just about live with that example changing so that the > fallback was cached, but I definitely don't think an explicit call > like \foo\strlen('x') should become an implicit alias for > \strlen('x'), which is apparently the current proposal. > > I really like the majority of this proposal, but right now would vote > against it based on that. > I agree here, I missed that fact while reviewing the RFC as I just understood it as an internal cache that \foo\strlen => \strlen, but function_exists('foo\strlen') should still return false IMO until it is defined, and once it is defined the cache should be busted. https://3v4l.org/VLW5O looks like correct behavior to me correctly. Best, Jordi -- Jordi Boggiano @seldaek - https://seld.be