Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94555 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75964 invoked from network); 18 Jul 2016 15:33:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2016 15:33:06 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:35954] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/D2-52781-051FC875 for ; Mon, 18 Jul 2016 11:10:22 -0400 Received: by mail-wm0-f43.google.com with SMTP id f126so107631342wma.1 for ; Mon, 18 Jul 2016 08:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=CceLn6DW5nxpJCLZBabgtDKuUvtoYOGJSkdVwHUQsIU=; b=BI5cmzCuYjvT2dhKdh0Lc6U3pg4QKmO0Vwu1SLU5UodgeiobetelmO+aZfaC6ocwv1 i/HRQDPD+hd6yODMSVSyZKWlu1r3yaI3LWeWxhSFHEIfPx6CUffnW5uqhfvOYaGHjn08 CX1F5K/vfTG7VA7txoJF/oTjtiNCg29SwArVhBiUSfyUfqDAW69Ya9x2JEiJHrfkX3aO Yr5q3n35Fp/Lql8jLSr3TDkYTwO96NIY5ePr45qYKHBs9YOPY+r0qQUEI4YGc68dGwlC +Fw9qtpoL3hPgXCVaI4mLmBAvgigI7xux1008Z5d5qOXA831UG4G4pMXkgOH2i8XYie1 d8Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=CceLn6DW5nxpJCLZBabgtDKuUvtoYOGJSkdVwHUQsIU=; b=K8ppEqKqQYfDbIB4X21BlfnbatpNEPjZ5wNVb36nGQloKHzqzBgjCOzdXBSCGNuYjM x4PE5rU/8HOrn4spj8ktzps7z9ZpeIAExkesv+TlkLo3HxH9B522MICpgf9ATTdqg7e+ OEJEcJ7pCAgjffKCWjWXF8wpSupvxAZpX3l/tRQuFpP/0lykxhxZPNAZP43H5QJz86PW MXdE32gsMkriqhioPamyDrbz5bgojOHrOJkFEv+Rv/XKeK1R23Pf4fa23DuxZdWUEfH3 WDTlIW5pqkPz7LnWUiULzwD/FrFXsH1CAeMvt5/xvlxGsU96SHBBNDjMzZwMjklv4yVS xPaQ== X-Gm-Message-State: ALyK8tIBIddr8hJ1lfEE+YuGfziZQexlEFPBH48zcEVrsjIyAkBa6wUEnTgDPtviCJg7cA== X-Received: by 10.28.55.21 with SMTP id e21mr20218208wma.80.1468854605622; Mon, 18 Jul 2016 08:10:05 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id p9sm1739776wjp.1.2016.07.18.08.10.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 08:10:04 -0700 (PDT) References: <3567286a-e942-1551-c300-663a50b0f484@gmail.com> To: PHP Internals List Message-ID: <7932a26c-0f85-720a-4d71-69002b018ae6@gmail.com> Date: Mon, 18 Jul 2016 16:07:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Idea: Function autoloading using dummy namespaces From: rowan.collins@gmail.com (Rowan Collins) On 18/07/2016 16:04, MichaƂ Brzuchalski wrote: > I was thinking on passing some context information into autoload about > context, eg.: class | funtion. Wouldn't it be satisfiable information > for autoloader? > IMHO it would be the easiest way to satisfy autoloader to find > proprietary implementation. Yep, that's how previous suggestions have worked, e.g. https://wiki.php.net/rfc/function_autoloading There are a few complexities around making the callbacks compatible (some already take a second argument for a different purpose), but the above RFC takes care of those. Regards, -- Rowan Collins [IMSoP]