mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +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
|