From: ladislav at marek dot su Operating system: irrelevant PHP version: 5.3.0alpha3 PHP Bug Type: Scripting Engine problem Bug description: use with non-compound name *has* effect
Description: ------------ Currently php throws bogus warning with non-compound name in use statement. Reproduce code: --------------- namespace My; use Foo; new Foo\Bar; Expected result: ---------------- Fatal error: Class 'Foo\Bar' not found in ... Actual result: -------------- Warning: The use statement with non-compound name 'Foo' has no effect in ... Fatal error: Class 'Foo\Bar' not found in ... 'use Foo' has effect, because fully qualified name isn't My\Foo\Bar but Foo\Bar. -- Edit bug report at http://bugs.php.net/?id=46979&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46979&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46979&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46979&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46979&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46979&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46979&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46979&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46979&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46979&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46979&r=support Expected behavior: http://bugs.php.net/fix.php?id=46979&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46979&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46979&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46979&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46979&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46979&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46979&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46979&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46979&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46979&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46979&r=mysqlcfg