mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5ad6571a21
This reverts commit b9f7123c5e
.
Fixes GH-11152
Closes GH-11153
21 lines
265 B
PHP
21 lines
265 B
PHP
--TEST--
|
|
GH-11152: Allow aliasing namespaces containing reserved class names
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace string;
|
|
|
|
use string as StringAlias;
|
|
|
|
class C {}
|
|
|
|
function test(StringAlias\C $o) {
|
|
var_dump($o::class);
|
|
}
|
|
|
|
test(new C());
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(8) "string\C"
|