php-src/Zend/tests/class_alias_019.phpt
2008-05-12 14:58:31 +00:00

18 lines
263 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