|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-04-09 11:25 UTC] cmb@php.net
 
-Status:      Open
+Status:      Not a bug
-Assigned To:
+Assigned To: cmb
  [2016-04-09 11:25 UTC] cmb@php.net
  [2016-04-09 12:04 UTC] goetas at gmail dot com
  [2016-04-09 14:24 UTC] cmb@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Description: ------------ It is not possible to alias a class from a namespace. I have also tried placing classes in different files, but the problem persists. Test script: --------------- <?php namespace A { class C { } } namespace B { class C { } } namespace B { use A\C; echo "something"; } Expected result: ---------------- something Actual result: -------------- PHP Fatal error: Cannot use A\C as C because the name is already in use in /vagrant/A/run.php on line 12