php-src/Zend/tests/ns_030.phpt

13 lines
216 B
Plaintext
Raw Normal View History

--TEST--
030: Name ambiguity (import name & class name)
--FILE--
<?php
class Foo {
}
import A::B as Foo;
new Foo();
--EXPECTF--
2007-08-22 14:33:25 +08:00
Fatal error: Import name 'Foo' conflicts with defined class in %sns_030.php on line 5