Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67149 invoked by uid 1010); 2 Oct 2007 11:56:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67134 invoked from network); 2 Oct 2007 11:56:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2007 11:56:29 -0000 Authentication-Results: pb1.pair.com header.from=php@benjaminschulz.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@benjaminschulz.com; spf=permerror; 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:35920] helo=mx.systisoft.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/73-42782-DE132074 for ; Tue, 02 Oct 2007 07:56:29 -0400 Received: (qmail 26677 invoked from network); 2 Oct 2007 11:56:20 -0000 Received: from unknown (HELO mail.ih.systisoft.com) (217.13.198.186) by mx.systisoft.com with SMTP; 2 Oct 2007 11:56:20 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.ih.systisoft.com (Postfix) with ESMTP id 08C4A340211 for ; Tue, 2 Oct 2007 13:56:27 +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 03665-01 for ; Tue, 2 Oct 2007 13:56:13 +0200 (CEST) Received: from [10.0.3.10] (marvin.b.ih.systisoft.com [10.0.3.10]) by mail.ih.systisoft.com (Postfix) with ESMTP id 023393401ED for ; Tue, 2 Oct 2007 13:56:12 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Tue, 2 Oct 2007 13:56:04 +0200 X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: by amavisd-new at mail.ih.systisoft.com X-Spam-Status: No, hits=-1.338 tagged_above=-999 required=5 tests=ALL_TRUSTED, AWL, BAYES_00, MISSING_SUBJECT, NO_RECEIVED X-Spam-Level: Subject: namespaces: import name conflicts with defined class From: php@benjaminschulz.com (Benjamin Schulz) Hi all, import Foo::Bar AS DomDocument; import Foo::Exception; import MyStuff::Dom::XsltProcessor; Result in a "Fatal error: Import name '...' conflicts with defined class" Of course i want to refer to my own exception in my application or framework as "Exception", and of course i want to use it without prefixes (import myStuff::Exception AS MyStuffException), i wouldn't use namespace otherwise (there is no other benefit, right?). It's not that one accidentally puts an "import Foo::Exception" in his file .. Is there a good reason for this bevhaviour that i don't see? There is still ::Exception to access the class in the global namespace. regards, Benjamin