php-src/Zend/tests/bug42859.phpt

13 lines
260 B
Plaintext
Raw Normal View History

--TEST--
2008-05-14 21:05:55 +08:00
Bug #42859 (import always conflicts with internal classes)
--FILE--
<?php
namespace Foo;
class Ex {}
2008-12-05 04:12:30 +08:00
use Blah\Exception;
use Blah\Ex;
?>
--EXPECTF--
2008-12-05 04:12:30 +08:00
Fatal error: Cannot use Blah\Ex as Ex because the name is already in use in %sbug42859.php on line 6