mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
16 lines
280 B
PHP
16 lines
280 B
PHP
--TEST--
|
|
Class declaration colliding with import (in namespace)
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Foo {
|
|
class Bar {}
|
|
}
|
|
|
|
namespace Bazzle {
|
|
use Foo\Bar;
|
|
class Bar {}
|
|
}
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d
|