1--TEST-- 2060: multiple namespaces per file 3--FILE-- 4<?php 5namespace Foo; 6use Bar\A as B; 7class A {} 8$a = new B; 9$b = new A; 10echo get_class($a)."\n"; 11echo get_class($b)."\n"; 12namespace Bar; 13use Foo\A as B; 14$a = new B; 15$b = new A; 16echo get_class($a)."\n"; 17echo get_class($b)."\n"; 18class A {} 19?> 20--EXPECT-- 21Bar\A 22Foo\A 23Foo\A 24Bar\A 25