Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51883 invoked from network); 13 May 2008 21:22:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2008 21:22:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:5053] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/00-50517-A760A284 for ; Tue, 13 May 2008 17:22:14 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 14 May 2008 00:21:45 +0300 Received: from [192.168.16.217] ([192.168.16.217]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 13 May 2008 14:21:42 -0700 Message-ID: <482A0624.4040003@zend.com> Date: Tue, 13 May 2008 14:20:36 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jeremy CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 May 2008 21:21:42.0232 (UTC) FILETIME=[56B4DD80:01C8B53F] Subject: Re: [PHP-DEV] 5.3 and reflection From: stas@zend.com (Stanislav Malyshev) Hi! > I'm installing a recent snap of 5.3 on my dev server. The app I'm > working on makes heavy use of reflection. How has reflection changed in > 5.3 to address namespaces? What resolution rules apply when creating a Namespaces should not have big influence on reflection, since namespace is just the logical partitioning of the class name - i.e. if the class name is Foo::Bar::Baz, you can say that Foo::Bar is the namespace, but for reflection you still use full class name. > ReflectionClass? If I try to create a ReflectionClass for a class that > is outside the current namespace, what will happen? You should be able to use any class name with ReflectionClass. Since namespaces are compile-time only, at runtime there's no such thing as "current namespace". > Also, are there any plans to address namespaces themselves in the > reflection API (i.e. ReflectionNamespace objects, getNamespace() method > in the ReflectionClass object, etc)? See above, it should answer these questions. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com