1--TEST-- 2use const and use function with the same alias 3--FILE-- 4<?php 5 6namespace { 7 const foo = 'foo.const'; 8 function foo() { 9 return 'foo.function'; 10 } 11} 12 13namespace x { 14 use const foo as bar; 15 use function foo as bar; 16 var_dump(bar); 17 var_dump(bar()); 18} 19 20?> 21--EXPECT-- 22string(9) "foo.const" 23string(12) "foo.function" 24