mirror of
https://github.com/php/php-src.git
synced 2025-01-03 09:23:42 +08:00
13 lines
224 B
PHP
Executable File
13 lines
224 B
PHP
Executable File
--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
|