mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
7aacc705d0
Closes GH-5958
14 lines
225 B
PHP
14 lines
225 B
PHP
--TEST--
|
|
030: Name ambiguity (import name & class name)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
}
|
|
|
|
use A\B as Foo;
|
|
|
|
new Foo();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5
|