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?> 21--EXPECT-- 22Foo\Bar\Foo 23Foo\Bar\Foo 24Foo\Bar\Foo 25Foo\Bar\Foo 26