#46755 [Com]: warning: use statement with non-compound name
ID: 46755
Comment by: david at grudl dot com
Reported By: david at grudl dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.3.0alpha3
New Comment:
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 :-(
Previous Comments:
------------------------------------------------------------------------
[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
Thread (9 messages)