Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54659 invoked by uid 1010); 25 Jul 2007 01:14:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54644 invoked from network); 25 Jul 2007 01:14:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2007 01:14:03 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:23202] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/6D-14257-BD3A6A64 for ; Tue, 24 Jul 2007 21:14:03 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 24 Jul 2007 18:14:01 -0700 Message-ID: <46A6A3D0.6060508@zend.com> Date: Tue, 24 Jul 2007 18:13:52 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Larry Garfield CC: internals@lists.php.net References: <46A31D95.2080407@fischer.name> <46A4F613.6020807@fischer.name> <1CFA45A3-023A-4E62-8507-63AD00ED10AC@bitxtender.com> <200707231942.57226.larry@garfieldtech.com> In-Reply-To: <200707231942.57226.larry@garfieldtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jul 2007 01:14:01.0109 (UTC) FILETIME=[157A3450:01C7CE59] Subject: Re: [PHP-DEV] Question about Namespace patch From: stas@zend.com (Stanislav Malyshev) > there is a __NAMESPACE__ constant, which is nice. Is there also a way to get > the "full name" of a function or class, so you can see where it came from? > Does import work for functions as well as classes? Inside namespace it's __NAMESPACE__.'::'.$short_name (yes, '::name' would be the same as just 'name'). Outside there's currently no way to do it automatically (i.e. resolve imports). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com