Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120051 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45358 invoked from network); 17 Apr 2023 08:22:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Apr 2023 08:22:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C81AB180505 for ; Mon, 17 Apr 2023 01:22:03 -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=0.8 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_HEADERS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) (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 ; Mon, 17 Apr 2023 01:22:03 -0700 (PDT) Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-1879edfeff5so12414056fac.4 for ; Mon, 17 Apr 2023 01:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681719722; x=1684311722; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=BddXoYxy1DkX6IheTeicnMuvibRoeq3kUruExeAHkEw=; b=mOTgX82M5yxlZLNU7OG9iLlxPYXgwjp8jr3v4HMxZoaCHKsX5vQKdj1MuWli54y3RP djzhpyAlOmfQVWdOthkedtMVmjPJRstampXN/BUP77qSYCxYjR6CJgmYhcYcCCYe9r2M y1lRA9iFw5I3M5FMYqJhAq4oZOQ+2uNMM5ifI4WA1UruEaTlzLm1S1kyoIwcflS1j31z b7q6v+3rSOD2ItzLXutsObLwOBSkSL+l6BPJOLZlCsV2ekt4eJCBbBT5pJma1np/0WE/ uAbp0annQvt8y+tvOQshze/mud7H4euS9taPj5uwmEW8S5HOZyH/fkPEMKk4JT010BRF X6qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681719722; x=1684311722; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BddXoYxy1DkX6IheTeicnMuvibRoeq3kUruExeAHkEw=; b=l7HFG9syds6ix8LN6pgiLKUI05Cc9t6l3k+ikm2Z6dGmd/vMJxx3GRU7ikwGzBbLGv 13Em2Yjcyj8IjX+PRn46I5bG7PSbEanR76YLWXF/PidiBw3Euda/NjuHM/oQF5OfE0Zh khBgzALwC2Xg8EuHeSB6g5JwsM5o8M0wPrE/cAoqF1eCJ5ytCc72JtYqrLrSy6TPCogk +DKnHqW3UivqMhCHEJFS3AN9MJjGY6XWq+jMlQev+7KHYYYs0RRi11nmWzioI35Nnnzh sxe/ZntJtjkxhcueLGvp8OGcs3h4sEGuTYCnlBXLEjkvGA3J9QgQSZSvVmtg3cqRFJKV Hfvw== X-Gm-Message-State: AAQBX9ejHwndBYcArGju5Mlmvfzngc1DB8Se4mddXVcIAG3+Sj6px9GA pXt4M+uLG6OS8ExkGDPIkVwjNwFMF4oJxrnMNTI0wqwxt0g= X-Google-Smtp-Source: AKy350bFG2XYsRm3e6calajm4nY9WWTNzLwdxg8TbQwlAo2ZUu/74kcSPwVijgGCOMcM48suRUdEMTszOXmBAA2dWtc= X-Received: by 2002:a05:6870:b6a0:b0:184:4c39:fe30 with SMTP id cy32-20020a056870b6a000b001844c39fe30mr6314580oab.9.1681719722631; Mon, 17 Apr 2023 01:22:02 -0700 (PDT) MIME-Version: 1.0 References: <3b7db03a-1cad-3762-b0ea-d33618be9644@gmail.com> In-Reply-To: Date: Mon, 17 Apr 2023 10:21:51 +0200 Message-ID: Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading From: landers.robert@gmail.com (Robert Landers) Hello, This looks really interesting but it might be a good idea to add a section for the definition of "pinning" and the scope of the pin. For example, what is the output of this code, executed in this order (with this new autoloading configured): // Test.php namespace Test { function password_verify(string $password, string $hash): bool { return true; } } // another file echo Test\password_verify('password', 'hash'); echo password_verify('password', 'hash'); // yet another file echo password_verify('password', 'hash'); Does this get pinned in the global namespace and does this pin extend to other files? If so, this could lead to very hard-to-reason-about code. Cheers, Rob Landers Utrecht, Netherlands