Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41120 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31462 invoked from network); 16 Oct 2008 12:55:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2008 12:55:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 216.239.58.184 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 216.239.58.184 gv-out-0910.google.com Received: from [216.239.58.184] ([216.239.58.184:40556] helo=gv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/C7-20632-5B937F84 for ; Thu, 16 Oct 2008 08:55:18 -0400 Received: by gv-out-0910.google.com with SMTP id e6so738466gvc.37 for ; Thu, 16 Oct 2008 05:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IP0rSq8mVP7mIygUtgxRLAOE9+t0GfJKRl/8QyonjGg=; b=Hl6xz/E2FM8YgcuMLqo9rEhgSK7M42P+T9fu4wEpnmjmkZlVCuDkieRqEe9IXBVe8M YkBpfpPZkZCPah9rVFO6TpZ10K28UA8YbXouVUMYX0FmDP7pD0xQTjfFojMrCs9mRctX sVJNamJ9hYed5dm5O5lTKP24eRNpx+h/cM6SA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=tiiZ8GtpGbczpdNxRXh/oqkAUxKE3KL9hU4gjvGLJkp1zMNHui5HRbfZnrejNzIzJ4 g/bntx4wAVM6lFQrSJjMfGV4tsmxLVuUCOmfrDg7CVzlChPJEv8CvkgpvIgzonEN8RqB ZAynOlFd2BAD428lLMOgDQsXsCUsv8oNO3xUw= Received: by 10.103.171.6 with SMTP id y6mr1374852muo.101.1224161714929; Thu, 16 Oct 2008 05:55:14 -0700 (PDT) Received: by 10.103.212.17 with HTTP; Thu, 16 Oct 2008 05:55:14 -0700 (PDT) Message-ID: <10845a340810160555w676a5a39neb58bb20144ffff5@mail.gmail.com> Date: Thu, 16 Oct 2008 13:55:14 +0100 Reply-To: RQuadling@GoogleMail.com To: "PHP Internals List" In-Reply-To: <48F653FF.5010106@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48F653FF.5010106@chiaraquartet.net> Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: rquadling@googlemail.com ("Richard Quadling") 2008/10/15 Greg Beaver : > Hi, > > http://wiki.php.net/rfc/namespaceissues > > Read it and discuss. Let's be clear people: the technical problems in > namespaces are limited and solvable. The problems in the political > environment surrounding them may not be. Wouldn't politics be a > stupid-ass reason to remove namespaces? > > Greg With regard to accessing internal classes within a namespace, would using the namespace separator be enough? namespace blah; function __autoload($class) { include $class . '.php'; } $a = new Exception('hi'); // Internal $b = new :::Execption('lo'); // Namespaced It seems that it is up to me as the userland develop to explicitly identify namespaces vs classes (I like :::), so I would have though I'd need to deal with this when I want to call my namespaced class vs a built in class. Autoload would only get called if the correctly identified namespaced class wasn't already present. If I said use the built in class, then so be it. OOI, would __autoload get "blah:::Exception" or just "Exception" ? If the latter, how would I differentiate? -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"