php-src/Zend/tests/name_collision_07.phpt
Ilija Tovilo 1c30c5e707
Print location on class redeclaration
Fixes GH-13950
Closes GH-13999
2024-04-30 14:34:43 +02:00

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