Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68860 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95227 invoked from network); 2 Sep 2013 20:11:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 20:11:59 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.123 smtp123.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.123] ([108.166.43.123:51034] helo=smtp123.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/1C-29856-D01F4225 for ; Mon, 02 Sep 2013 16:11:58 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp8.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 16AD11A0AEB; Mon, 2 Sep 2013 16:11:55 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp8.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id CBD1A1A0AEE; Mon, 2 Sep 2013 16:11:51 -0400 (EDT) Message-ID: <5224F107.4000606@sugarcrm.com> Date: Mon, 02 Sep 2013 13:11:51 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Florin Patan CC: Anthony Ferrara , "internals@lists.php.net" References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> <5220D212.3010101@sugarcrm.com> <61FCD6C4A31248078FEAD2BA73D7CD44@gmail.com> <7AF31CC1D1554454AC95AE758D23E92E@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Function autoloading From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The function names might look like this: > - spl_register_autoloader -> autoloader for everything Given we already have spl_autoload_register that'd be pretty confusing. Also, we usually name functions in increasing order of specificity (i.e. spl_autoload_call/spl_autoload_spl_autoload_functions, not spl_call_autoloader and spl_give_me_list_of_autoload_functions). > - spl_register_function_autoloader -> autoloader for functions/consts > - spl_register_class_autoloader -> current autoloader for classes only > Or maybe alias php\ to \ namespace auto-magically? Nope. \ namespace is root namespace, it can not be magically aliased to anything and should not be. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227