Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119971 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41811 invoked from network); 12 Apr 2023 15:52:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Apr 2023 15:52:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E67DB180041 for ; Wed, 12 Apr 2023 08:52:10 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 ; Wed, 12 Apr 2023 08:52:10 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id ud9so29835580ejc.7 for ; Wed, 12 Apr 2023 08:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; t=1681314729; x=1683906729; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bx057qKFTkBS2qAnlXMOFlHBBDZcdv1Dp7DxOPnfsLw=; b=3faXf3TqVyEIS5SWqGFq7/opxSC5UzUYBf8aAo98FWWAFqr0XuB0TAfDnqLDjbmNBr uEezET/x6botS5SUwLpJb8pDYH2ULeD5T0LhQ18WU4KX9wDGKYlXLjNpUWEogEg6cMH1 s/JU0uEY8jIHclTovsgp7rJYxjc1s8nOa2bn6eGIas0Uur1wTxOd2V5yc7D7EXQuCOLC gX2w4tQHKmQefJVYL0I5wsqVYToHtqHNtbfdDtgKDmbje+9pgguBum6QIXTALYM9Wq/g EnuW6xxrZvhkIWtbGjXJ0tL7XkPTCEAshkdtKNZ/Y0KHXE4UCRtcpBjvEBpTBpP2v8F5 pnJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681314729; x=1683906729; h=cc:to: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=Bx057qKFTkBS2qAnlXMOFlHBBDZcdv1Dp7DxOPnfsLw=; b=fvgvQWnc1XJ1V6ZyT4ozjdkS1gZX40zQQSA9NNNc+zF6qR3JkIAi8xo2/LsxSvUEPu n6XOaxRINGJAxdK6HYUQs5Z8KzXcXC97QsHJIw1AGNPHVlhCgSTwzsx8Q0bWg9gF0nfJ yvdb/3xFX9RoLeiA64k0l8GZP9hmNTbwP7wHY+ocGaoYsfJZTLq7l74zqHvcGbEVVLWc ginT7cd2qLishbuHNps8NTPPmtrZ6M/Yns/BU7nzvqG31F+yGzn75BYCvanq/En9/t0l iHV4u5vSPiVmE4q9cMeugTmwanG1gAY0vGjkVyQz+PFB4HxZvriIrn3TT2Vlp/tmErPF cJcw== X-Gm-Message-State: AAQBX9eng3qHiP3MJfWMjUOZ008Imc5Lu76WaYHPlyJYFlh9u6H31S5L qilTTbgCey7jqCSAK5FcfLhXq4kxaQXVdsH84ijmxg== X-Google-Smtp-Source: AKy350atrVyKfTTlWx0DqqPy+XR1c2fR0EA038NBWcFQluiW1gyEOX8qodEDy7PAwMCeXG863G7VqaHhTvvRPXJQJ6Q= X-Received: by 2002:a17:907:c60b:b0:94a:6cae:701f with SMTP id ud11-20020a170907c60b00b0094a6cae701fmr5442026ejc.8.1681314728998; Wed, 12 Apr 2023 08:52:08 -0700 (PDT) MIME-Version: 1.0 References: <1681231975223.2858287856.1521675056@yahoo.de> In-Reply-To: <1681231975223.2858287856.1521675056@yahoo.de> Date: Wed, 12 Apr 2023 16:51:58 +0100 Message-ID: To: Hans Krentel Cc: george.banyard@gmail.com, PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading From: Danack@basereality.com (Dan Ackroyd) On Tue, 11 Apr 2023 at 18:12, Hans Krentel via internals wrote: > > So I'd love to see some commentary on a `function_alias()` > if now function autoloading is considered to come in I wouldn't be opposed to it, but it should be a separate RFC. The implementation could be copied from https://www.php.net/manual/en/function.runkit7-function-copy and probably wouldn't be that complicated, or conflict with this RFC. > It was the latter which brought us `class_alias()` [0] > and I've used it often in code migrations Yes, in particular the changing from Twig_Template_Loader to Twig\Template\Loader migration. I'll add it to my list at https://phpopendocs.com/rfc_codex It would seem a good "my first RFC" for someone. Though, function migration could also be solved in a far more powerful way. Check my forthcoming reply to Rowan... cheers Dan Ack