mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
18 lines
261 B
PHP
18 lines
261 B
PHP
--TEST--
|
|
Trying to redeclare class name in global scope inside namespace
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace foo;
|
|
|
|
|
|
class foo {
|
|
}
|
|
|
|
class_alias(__NAMESPACE__ .'\foo', 'foo');
|
|
class_alias('\foo', 'foo');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot redeclare class foo in %s on line %d
|