1--TEST-- 2086: bracketed namespace with encoding 3--EXTENSIONS-- 4mbstring 5--INI-- 6zend.multibyte=1 7--FILE-- 8<?php 9declare(encoding='utf-8'); 10namespace foo { 11use \foo; 12class bar { 13 function __construct() {echo __METHOD__,"\n";} 14} 15new foo; 16new bar; 17} 18namespace { 19class foo { 20 function __construct() {echo __METHOD__,"\n";} 21} 22use foo\bar as foo1; 23new foo1; 24new foo; 25echo "===DONE===\n"; 26} 27?> 28--EXPECT-- 29foo::__construct 30foo\bar::__construct 31foo\bar::__construct 32foo::__construct 33===DONE=== 34