Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35013 invoked by uid 1010); 22 Oct 2007 21:23:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34998 invoked from network); 22 Oct 2007 21:23:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2007 21:23: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 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:43519] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/BD-54812-9E41D174 for ; Mon, 22 Oct 2007 17:23:55 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Oct 2007 23:23:50 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Oct 2007 14:23:46 -0700 Message-ID: <471D14E3.8010805@zend.com> Date: Mon, 22 Oct 2007 14:23:47 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Magnus_M=E4=E4tt=E4?= CC: internals@lists.php.net References: <200710211557.48355.magnus@php.net> <471BA9AD.3010101@zend.com> <200710222134.30345.magnus@php.net> In-Reply-To: <200710222134.30345.magnus@php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Oct 2007 21:23:46.0871 (UTC) FILETIME=[D4BA4470:01C814F1] Subject: Re: [PHP-DEV] Dynamic class names and namespaces From: stas@zend.com (Stanislav Malyshev) > Ahh, I see, that's a bit disappointing. Any reason why it doesn't/shouldn't > work ? Yes. Test::Foo is a class name, so you can't make part of it variable and part not, just as you couldn't write: $var = "bar"; $a = new foo$var(); and expect new instance of class "foobar". You'd have to compose the full name in variable and then use it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com