Using dynamic class names works fine without namespaces, but
doesn't work at all with namespaces. Take this simple example:
<?php
namespace test;
class Foo {}
$class = "Foo";
$foo = new test::$class();
?>
Will produce the following message:
Fatal error: Class 'test::test' not found in foo.php on line Y
I don't think partially variable class name is supposed to work. It is
interesting though how the engine managed to parse this at all...
--
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