Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38726 invoked by uid 1010); 3 Oct 2007 09:50:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38710 invoked from network); 3 Oct 2007 09:50:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2007 09:50:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@benjaminschulz.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@benjaminschulz.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain benjaminschulz.com from 80.81.249.139 cause and error) X-PHP-List-Original-Sender: php@benjaminschulz.com X-Host-Fingerprint: 80.81.249.139 mx.systisoft.com Linux 2.5 (sometimes 2.4) (4) Received: from [80.81.249.139] ([80.81.249.139:60616] helo=mx.systisoft.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/8B-58646-8F563074 for ; Wed, 03 Oct 2007 05:50:49 -0400 Received: (qmail 30612 invoked from network); 3 Oct 2007 09:50:38 -0000 Received: from unknown (HELO mail.ih.systisoft.com) (217.13.198.186) by mx.systisoft.com with SMTP; 3 Oct 2007 09:50:38 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.ih.systisoft.com (Postfix) with ESMTP id 7F830344BCB for ; Wed, 3 Oct 2007 11:19:25 +0200 (CEST) Received: from mail.ih.systisoft.com ([127.0.0.1]) by localhost (heidi.b.ih.systisoft.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13192-01 for ; Wed, 3 Oct 2007 11:19:11 +0200 (CEST) Received: from [10.0.5.10] (unknown [10.0.5.10]) by mail.ih.systisoft.com (Postfix) with ESMTP id 67794344BA7 for ; Wed, 3 Oct 2007 11:19:11 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <4702A457.5010005@zend.com> References: <470295DA.6090602@php.net> <4702A457.5010005@zend.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <83C14D8F-4F6A-49C6-BE2E-2B80A722A03C@benjaminschulz.com> Content-Transfer-Encoding: 7bit Date: Wed, 3 Oct 2007 11:19:00 +0200 To: internals Mailing List X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: by amavisd-new at mail.ih.systisoft.com X-Spam-Status: No, hits=-2.118 tagged_above=-999 required=5 tests=ALL_TRUSTED, AWL, BAYES_00, MISSING_SUBJECT, NO_RECEIVED X-Spam-Level: Subject: Re: [PHP-DEV] Re: namespaces: import name conflicts with defined class From: php@benjaminschulz.com (Benjamin Schulz) On 02.10.2007, at 22:04, Stanislav Malyshev wrote: >> > import ::Exception as Notused; >> import Foo::Exception; >> ?> >> > > I wouldn't actually recommend using such code. If you have > Foo::Exception just use Foo::Exception - it's short enough :) > And what if not? "throw App::package::subpackage::Exception" in a file that has the namespace "App::package::subpackage" is just wrong, importing the Exception as a different name as well. Importing the global Exception as something else - i don't even know what to answer to that ... this problem makes the whole concept just seem broken, is there even a concept? ;) regards, Benjamin