Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32252 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34488 invoked by uid 1010); 11 Sep 2007 14:32:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34467 invoked from network); 11 Sep 2007 14:32:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2007 14:32:11 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.162.235 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: 64.233.162.235 nz-out-0506.google.com Received: from [64.233.162.235] ([64.233.162.235:19400] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/00-33962-0C6A6E64 for ; Tue, 11 Sep 2007 10:31:45 -0400 Received: by nz-out-0506.google.com with SMTP id x7so663390nzc for ; Tue, 11 Sep 2007 07:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=VF9msVWtm67vZIoZBXgzJQu4wTS3jYFgfT1DipZTcNE=; b=jjEJyoRh+0BG2cw//IO0Suq1gn5MtVrhBtXujqcXinsGAedRXxvc0dPRTWLBS1xDWi4zm9fyRM3Ofic6nBtwndIRR7XSygpw8OdXo+TBFLElSozkKin1F7J88GU8y/8uDVCfpqQDoxP0SO0PbUVOAz8gobW6WEe9s5+uviv3RjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qWfXkp87A0uL4ESarJ5t/Chd5pUyaW2nfxILDKtbORoEazHiLDUrmpf6uFDjqa3wzMvBRvTzAWsWYkUrmyxVM4a9pc0Agz6w6nYpeC6eTcWAx1jYQNce79a8W/TzIwqmgo9DN/enGTOC8eP+EOuDKUK3pT89ybr5dH/fqQCAeVg= Received: by 10.142.229.4 with SMTP id b4mr299468wfh.1189521064351; Tue, 11 Sep 2007 07:31:04 -0700 (PDT) Received: by 10.142.216.4 with HTTP; Tue, 11 Sep 2007 07:31:04 -0700 (PDT) Message-ID: <10845a340709110731k72b3d5aawf5f4d6fb0262d677@mail.gmail.com> Date: Tue, 11 Sep 2007 15:31:04 +0100 Reply-To: RQuadling@GoogleMail.com To: php-dev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Global namespace? From: rquadling@googlemail.com ("Richard Quadling") Assume for some reason you have an entity in a namespace which has the same name as something in the global namespace. Within the namespace, you wouldn't need to use the namespace prefix (maybe it has been aliased, subclassed or some other reference). How would you access the global namespaced entity? For variables, object instances, references, etc., you can use $GLOBALS[], but if the namespace is going to look like ... namespace_a::class_b->method_c(); Should there be an alias for global? global::class_b->method_c(); Or have I missed something? -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"