#46755 [Opn->Bgs]: warning: use statement with non-compound name
| From: | felipe@php.net | Date: | Sun, 28 Dec 2008 21:08:30 +0000 |
| Subject: | #46755 [Opn->Bgs]: warning: use statement with non-compound name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132366@lists.php.net to get a copy of this message | ||
ID: 46755
Updated by: felipe@php.net
Reported By: david at grudl dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.3.0alpha3
New Comment:
Read:
http://docs.php.net/manual/en/language.namespaces.importing.php
Previous Comments:
------------------------------------------------------------------------
[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