xref: /PHP-8.0/Zend/tests/class_alias_019.phpt (revision 67b907f0)
1--TEST--
2Trying to redeclare class name in global scope inside namespace
3--FILE--
4<?php
5
6namespace foo;
7
8
9class foo {
10}
11
12class_alias(__NAMESPACE__ .'\foo', 'foo');
13class_alias('\foo', 'foo');
14
15?>
16--EXPECTF--
17Warning: Cannot declare class foo, because the name is already in use in %s on line %d
18