Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90678 invoked by uid 1010); 24 Jul 2007 19:47:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90663 invoked from network); 24 Jul 2007 19:47:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 19:47:32 -0000 X-Host-Fingerprint: 208.67.191.194 unknown Received: from [208.67.191.194] ([208.67.191.194:10573] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/77-14257-36056A64 for ; Tue, 24 Jul 2007 15:18:00 -0400 To: internals@lists.php.net,stas@zend.com (Stanislav Malyshev) Date: Tue, 24 Jul 2007 12:18:10 -0700 Message-ID: <20070724121810.7443a5a6@h4x0r.tss> In-Reply-To: <46A64AB2.5010301@zend.com> References: <46A31D95.2080407@fischer.name> <46A4F613.6020807@fischer.name> <1CFA45A3-023A-4E62-8507-63AD00ED10AC@bitxtender.com> <200707231942.57226.larry@garfieldtech.com> <46A64AB2.5010301@zend.com> Organization: The Selling Source, Inc. X-Newsreader: Claws Mail 2.9.1 (GTK+ 2.10.11; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 208.67.191.194 Subject: Re: [PHP-DEV] Question about Namespace patch From: andrew.minerd@sellingsource.com (Andrew Minerd) On Tue, 24 Jul 2007 11:53:38 -0700 stas@zend.com (Stanislav Malyshev) wrote: > > 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. > > w/ snapshot from yesterday: andrewm@ds38 /usr/local/src/php6.0-200707232030 $ cat ./namespace3.php andrewm@ds38 /usr/local/src/php6.0-200707232030 $ ./sapi/cli/php ./namespace3.php Test Andrew Minerd Software Architect The Selling Source, Inc.