Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3465 invoked from network); 15 Aug 2011 21:49:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2011 21:49:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:58710] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/62-21941-254994E4 for ; Mon, 15 Aug 2011 17:49:06 -0400 Received: by gwb17 with SMTP id 17so3845074gwb.29 for ; Mon, 15 Aug 2011 14:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5mzc3j7ltlKecEtvZy2OrOKJKrNdkjKEDUywUOWPzbU=; b=FjXZ2grv37SnqBMuq5sYr/eqKOrt8Fw5XOoJaG+XMrbMAp/dU7m8ezvbvr4iT33+IO tdV5TGExLtgblEl4NldGl2I+tKrkfD6OWG64V37n2fBIxG6dJsiYb3XPb3EgDIePZ6t5 2Wi+9Lq7ZgOJlULNrC9X0GPCmJ4+LtZzi9teQ= MIME-Version: 1.0 Received: by 10.42.150.71 with SMTP id z7mr4262130icv.474.1313444943667; Mon, 15 Aug 2011 14:49:03 -0700 (PDT) Received: by 10.42.178.197 with HTTP; Mon, 15 Aug 2011 14:49:03 -0700 (PDT) In-Reply-To: <4E48D848.1070407@sugarcrm.com> 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> Date: Mon, 15 Aug 2011 14:49:03 -0700 Message-ID: To: Stas Malyshev Cc: Ferenc Kovacs , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: chrisstocktonaz@gmail.com (Chris Stockton) Hello Stas, On Mon, Aug 15, 2011 at 1:26 AM, Stas Malyshev wrote: > Hi! > It's not a shortcoming, it was designed that way, and for very serious > reasons. If you want to know the reasons, there were discussed extensively > when namespaces were discussed. Please re-read that discussion. And all > things you propose now were already discussed back then too. If you hope > people would write \strlen instead of strlen, this discussion is pointless > because it won't happen. > -- I see your viewpoint from a architectural/design perspective and they are valid, but I think the impact and design could be lightened with some simple rules of precedence. I think it would be fair to say, autoloader will not be called on a function like strpos, or any builtin compiled extension. Only once those are cycled through will autoloader for functions be called. At this point the performance penalty doesn't exist, because at this point the program execution would have halted with a fatal error anyways. -Chris