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
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to