I've attached some phpt files to test this, but here's a simple illustration:foo.php: <?php namespace foo; function foobar() { } class Foobaz { } ?>bar.php: <?php import foo; foobar(); // error new Foobaz; // error foo::foobar(); // ok new foo::Foobaz; // ok
That's how it's supposed to work. Import foo is a no-op.
import foo::foobar; import foo::Foobaz; foobar(); // error new Foobaz; // ok
Well, this one might be an error - I think direct import of functions might be OK.
-- 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
