Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33719 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23352 invoked by uid 1010); 5 Dec 2007 08:39:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23337 invoked from network); 5 Dec 2007 08:39:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 08:39:48 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:53998] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/80-20707-1D366574 for ; Wed, 05 Dec 2007 03:39:46 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id lB58ddGO017910; Wed, 5 Dec 2007 09:39:39 +0100 Date: Wed, 5 Dec 2007 09:39:39 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Gregory Beaver cc: PHP Developers Mailing List In-Reply-To: <4755E492.2080906@chiaraquartet.net> Message-ID: References: <4755E492.2080906@chiaraquartet.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Re: RFC: Dropping Namespace From: derick@php.net (Derick Rethans) On Tue, 4 Dec 2007, Gregory Beaver wrote: > However, in the global scope (no namespace) it would fail. This is a > bug that is easily fixed. use should allow re-aliasing of global > classes, and I could provide a very easy fix. No, use should not allow this. Take the following example: loadXML('blah'); $s = simplexml_import_dom($dom); echo $s->book[0]->title; // blah ?> Besides this being a *big* WTF factor (why is my internal class suddendly doing something else?) simplexml will horrible fail in this case. Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org