mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
13 lines
225 B
PHP
Executable File
13 lines
225 B
PHP
Executable File
--TEST--
|
|
029: Name ambiguity (class name & import name)
|
|
--FILE--
|
|
<?php
|
|
use A\B as Foo;
|
|
|
|
class Foo {
|
|
}
|
|
|
|
new Foo();
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4
|