ID: 46755 Updated by: fel...@php.net Reported By: david at grudl dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.3.0alpha3 New Comment:
"Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not, such as FooBar), the leading backslash is unnecessary and not allowed, as import names must be fully qualified, and are not processed relative to the current namespace." This explain it. Previous Comments: ------------------------------------------------------------------------ [2008-12-28 23:33:34] david at grudl dot com I have read it. Please, change status to Open. ------------------------------------------------------------------------ [2008-12-28 21:08:29] fel...@php.net Read: http://docs.php.net/manual/en/language.namespaces.importing.php ------------------------------------------------------------------------ [2008-12-19 17:19:57] david at grudl dot com It would be very nice if the error was fixed, because it is difficult to test alpha3 with a tons of Warnings: The use statement with non-compound name 'Nette' has no effect :-( ------------------------------------------------------------------------ [2008-12-05 04:24:32] david at grudl dot com Description: ------------ Declaration 'use Foo' produces invalid warning "The use statement with non-compound name 'Foo' has no effect". It has effect: namespace Bar; new Foo\Class; -> object Bar\Foo\Class; namespace Bar; use Foo; new Foo\Class; -> object Foo\Class; Reproduce code: --------------- use Foo; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46755&edit=1