mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
28 lines
432 B
Plaintext
28 lines
432 B
Plaintext
|
--TEST--
|
||
|
086: bracketed namespace with encoding
|
||
|
--FILE--
|
||
|
<?php
|
||
|
declare(encoding='utf-8');
|
||
|
namespace foo {
|
||
|
use \foo;
|
||
|
class bar {
|
||
|
function __construct() {echo __METHOD__,"\n";}
|
||
|
}
|
||
|
new foo;
|
||
|
new bar;
|
||
|
}
|
||
|
namespace {
|
||
|
class foo {
|
||
|
function __construct() {echo __METHOD__,"\n";}
|
||
|
}
|
||
|
use foo\bar as foo1;
|
||
|
new foo1;
|
||
|
new foo;
|
||
|
echo "===DONE===\n";
|
||
|
}
|
||
|
--EXPECT--
|
||
|
foo::__construct
|
||
|
foo\bar::__construct
|
||
|
foo\bar::__construct
|
||
|
foo::__construct
|
||
|
===DONE===
|