mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
1c30c5e707
Fixes GH-13950 Closes GH-13999
17 lines
288 B
PHP
17 lines
288 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 redeclare class Bazzle\Bar (previously declared as local import) in %s on line %d
|