Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78966 invoked by uid 1010); 24 Jul 2007 18:53:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78951 invoked from network); 24 Jul 2007 18:53:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 18:53:55 -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:12168] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/D6-14257-0CA46A64 for ; Tue, 24 Jul 2007 14:53:55 -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 11:53:50 -0700 Message-ID: <46A64AB2.5010301@zend.com> Date: Tue, 24 Jul 2007 11:53:38 -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: 24 Jul 2007 18:53:50.0036 (UTC) FILETIME=[F904B140:01C7CE23] Subject: Re: [PHP-DEV] Question about Namespace patch From: stas@zend.com (Stanislav Malyshev) > Where I can see a huge use for namespaces is plugin-based architectures. Each > plugin is its own namespace. If you have a list of plugins, then you have a > list of namespaces and can iterate over that and invoke the same operation on > each plugin. That would require call_user_func() and call_user_func_array() > and the rest of that family to be able to handle namespaces. How would one Since namespace is just a part of class name, I don't see any problem for call_user_func() to be able to use namespaced names. Of course, they should get full class name - if you want to use shorter ones you'd have to change something. Here we might need some functionality, but it's not clear to me yet which one. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com