Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68818 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71840 invoked from network); 1 Sep 2013 15:27:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2013 15:27:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.52 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.212.52 mail-vb0-f52.google.com Received: from [209.85.212.52] ([209.85.212.52:37494] helo=mail-vb0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/14-55332-9FC53225 for ; Sun, 01 Sep 2013 11:27:54 -0400 Received: by mail-vb0-f52.google.com with SMTP id f12so2354582vbg.25 for ; Sun, 01 Sep 2013 08:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=twRRTS2prYDmIvn+IrdOcVV3NhdgzZwBnblzF2bhNoA=; b=sr/CzYJhvu44BkcdJZPahKV7GcLM1xh8Z+ODWMjs4fsjLy6h6MEyyC584N4lG4C1VK HQNAZhbydUk7iOx2CLWmYxqEAj87Wd6vpJ8Rdp/6BNLUTIDzyF+mZBVoSIJ588PULd4+ 9EcCGlq6zZn00ifnzR8Zjfb15b86QtCQqlDzQPqveT+SGTUBLvgUPfTmUaGTiM8S8iz1 mN4KZgbH21dXePL7w6Dx9ZIQwJ51mZmeEhp0S4UWF/GiVgLZFsHuViY5gUsgRVKYpBfs Ag8ini6eEKKBviH6kjwg2v5hE0fSVusj3rZDkizaGizw9umGqK7jgdkFIbkmZYld4DAJ sYeg== X-Received: by 10.52.232.165 with SMTP id tp5mr14890213vdc.11.1378049271117; Sun, 01 Sep 2013 08:27:51 -0700 (PDT) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.52.249.80 with HTTP; Sun, 1 Sep 2013 08:27:31 -0700 (PDT) In-Reply-To: References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> <5220D212.3010101@sugarcrm.com> <61FCD6C4A31248078FEAD2BA73D7CD44@gmail.com> <7AF31CC1D1554454AC95AE758D23E92E@gmail.com> Date: Sun, 1 Sep 2013 17:27:31 +0200 X-Google-Sender-Auth: BGFx0zsIUFY0wLTWNm48AA8VNx8 Message-ID: To: Anthony Ferrara Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0122f48049bf0e04e5541913 Subject: Re: [PHP-DEV] Re: Function autoloading From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --089e0122f48049bf0e04e5541913 Content-Type: text/plain; charset=ISO-8859-1 My previous message didn't push the point I wanted raise: don't we have a major problem related to at-run-time namespace resolution for functions and constants? Take this code: namespace foo { strlen("bar"); } Will you trigger an autoload for foo\strlen? I believe not because that would hurt performance too much. But then, how will you load function foo\strlen if it exists? Now take this code: namespace foo { bar(); } Will you trigger autoload for "foo\bar" first, then for "bar"? Only for "foo\bar"? But then, what if "bar" exists and just waits being autoloaded? I fail to see how autoloading functions is compatible with at-run-time namespace resolution. --089e0122f48049bf0e04e5541913--