Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85399 invoked from network); 30 Aug 2013 07:22:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 07:22:30 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wg0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:50225] helo=mail-wg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/03-64695-43840225 for ; Fri, 30 Aug 2013 03:22:29 -0400 Received: by mail-wg0-f44.google.com with SMTP id x12so1249221wgg.23 for ; Fri, 30 Aug 2013 00:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/t2RFMQ/RVpuXkQePeBvaW+ZJkaL4fndLLM7rdY/hnA=; b=pK9Si3sTxGhHc3ZBnwhq5iCdvcZOH9JXXhpF5/nEP6ySOYZUXV6oldLqx1e7NyLfDS U3u87xYvqYAlgxgpS+lhYDuL1fUPhy6j96bQEaw3/XMPL1hb+C4HY6RKmw+5rL8rZXgl HFSpvC0QhZ9FJVaik+ZG1rqmCvrcjJLyfzMAc0IaNqlm8K7Ts8bc5V6kfJovrxKhvzUx nCETk29OjUFUisJWJ03uFYm2jylg6XW6fkU/szbmVPPxS4Pi11oG00BHYOwAsfwfGRzd xNRX6ikxFFuCYBNNfaVCVCSFcbaruJFYwDfaliO2wrdKXSUUkM4J+nNa0NqMPjMCTe92 HHCQ== X-Received: by 10.194.122.129 with SMTP id ls1mr513842wjb.37.1377847345744; Fri, 30 Aug 2013 00:22:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.5.9 with HTTP; Fri, 30 Aug 2013 00:21:45 -0700 (PDT) In-Reply-To: <5220437A.7050008@sugarcrm.com> References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> Date: Fri, 30 Aug 2013 09:21:45 +0200 Message-ID: To: Stas Malyshev Cc: Sara Golemon , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e012299c89913a004e525158c Subject: Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading From: krebs.seb@gmail.com (Sebastian Krebs) --089e012299c89913a004e525158c Content-Type: text/plain; charset=ISO-8859-1 2013/8/30 Stas Malyshev > Hi! > > > I disagree on the basis that namespaced functions/constants *do* fit the > > same autoloading paradigm. > > If they're already namespaced, what prevents one to put it in a class > and use good old PSR-compatible loading? > Well, static methods aren't the same as functions. > > > Those function calls would only kick in if the function/constant wasn't > > already defined, which will be the exception case, so perf isn't a > > strong argument. > > Not according to the code I see in the patch. There I see 2 func calls > (among other things) before the hash is even looked up. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --089e012299c89913a004e525158c--