1--TEST-- 2025: Name ambiguity (class name & part of namespace name) 3--FILE-- 4<?php 5namespace Foo\Bar; 6 7class Foo { 8 function __construct() { 9 echo __CLASS__,"\n"; 10 } 11 static function Bar() { 12 echo __CLASS__,"\n"; 13 } 14} 15 16$x = new Foo; 17Foo::Bar(); 18$x = new \Foo\Bar\Foo; 19\Foo\Bar\Foo::Bar(); 20--EXPECT-- 21Foo\Bar\Foo 22Foo\Bar\Foo 23Foo\Bar\Foo 24Foo\Bar\Foo 25