Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33941 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23640 invoked by uid 1010); 11 Dec 2007 23:09:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23625 invoked from network); 11 Dec 2007 23:09:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2007 23:09:16 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:53686] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/71-11541-B981F574 for ; Tue, 11 Dec 2007 18:09:16 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 682F3C0F0D7; Tue, 11 Dec 2007 16:09:13 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-15-179.neb.res.rr.com [76.84.15.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id C8D67C0F0D0; Tue, 11 Dec 2007 16:09:12 -0700 (MST) Message-ID: <475F18B1.2070608@chiaraquartet.net> Date: Tue, 11 Dec 2007 17:09:37 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Matthias Pigulla CC: Stanislav Malyshev , =?ISO-8859-1?Q?David_Z=FClke?= , internals@lists.php.net References: <11970653983080000@9866357972520000.9866341568840000> <475BDDF1.7040605@ctindustries.net> <1723341090.20071210220025@marcus-boerger.de> <1197323296.3922.5.camel@sbarrow-desktop> <00A2E2156BEE8446A81C8881AE117F199A0715@companyweb> <475ED038.3080004@zend.com> <7F9E1E02-FF89-474B-9E94-007747B3637A@bitxtender.com> <475EF175.2030304@zend.com> <475F01B1.8090407@zend.com> <31696FA6-ADC3-4853-A5AE-23FA16750B3D@bitxtender.com> <475F10DA.6000909@zend.com> <00A2E2156BEE8446A81C8881AE117F199A0740@companyweb> In-Reply-To: <00A2E2156BEE8446A81C8881AE117F199A0740@companyweb> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: AW: AW: [PHP-DEV] Namespace resolution From: greg@chiaraquartet.net (Gregory Beaver) Matthias Pigulla wrote: >> Von: Stanislav Malyshev [mailto:stas@zend.com] > >> But you could achiever the same just by avoiding naming classes the >> same as internal classes, you surely know which classes are in your >> own namespace? > ... >> Not using names of classes same as internal classes is not a big >> deal either - all PHP programmers do it right now :) > > Rumor exists that sometimes new internal classes show up in late RCs. > And as you try to name your classes so that the name describes the > modeled construct best, it is not surprising that core wants to name > such a new class "Date" just as userland folks had their classes > named "Date" as well before (shame on them). > > I always thought that one of the prime reasons for providing > namespaces was to mitigate this risk of breakage in a simple, > predictable and user-friendly manner. Hi, I brought this issue up in the original thread about namespace implementation. I've also brought it up since then twice, including in the long rebuttal to Derick's RFC. Here again is the obvious solution: now __autoload() is called. End of crisis. Also possible is: for a namespace with many classes. Could we move on from this problem? It is easily solved with the current implementation. Greg