Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54664 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84563 invoked from network); 17 Aug 2011 23:37:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2011 23:37:16 -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 67.192.241.163 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.163 smtp163.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.163] ([67.192.241.163:59029] helo=smtp163.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/C4-56760-BA05C4E4 for ; Wed, 17 Aug 2011 19:37:15 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp16.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 8CF3440748; Wed, 17 Aug 2011 19:37:12 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp16.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 2DE0540714; Wed, 17 Aug 2011 19:37:12 -0400 (EDT) Message-ID: <4E4C50A7.4000604@sugarcrm.com> Date: Wed, 17 Aug 2011 16:37:11 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Matthew Weier O'Phinney CC: "internals@lists.php.net" References: <4E481136.3090508@sugarcrm.com> <4E483284.4010100@googlemail.com> <4E4838E1.3000006@sugarcrm.com> <4E48430D.6070409@googlemail.com> <4E486A50.4010700@sugarcrm.com> <4E48A22E.1040900@googlemail.com> <4E48AD3E.6010801@sugarcrm.com> <4E48C126.50707@sugarcrm.com> <4E48D848.1070407@sugarcrm.com> <81.F0.56760.0263C4E4@pb1.pair.com> In-Reply-To: <81.F0.56760.0263C4E4@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! On 8/17/11 2:44 PM, Matthew Weier O'Phinney wrote: > There's nothing saying you can't have the exact same situation right now > with classes and autoloading, too. Well, there is something - the "file per class" custom which is followed quite widely. And also classes don't have fallbacks, while the functions do. > While I understand your objections, I think that after the functionality > exists, there can be discussions about best practices -- e.g., putting > one function per file when autoloading, or documenting when all I'm not sure anybody would really do function-per-file - it's too tedious. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227