xref: /php-src/Zend/tests/gh11152.phpt (revision 5ad6571a)
1--TEST--
2GH-11152: Allow aliasing namespaces containing reserved class names
3--FILE--
4<?php
5
6namespace string;
7
8use string as StringAlias;
9
10class C {}
11
12function test(StringAlias\C $o) {
13    var_dump($o::class);
14}
15
16test(new C());
17
18?>
19--EXPECT--
20string(8) "string\C"
21