summaryrefslogtreecommitdiff
path: root/Zend/tests/bug42859.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug42859.phpt')
-rwxr-xr-xZend/tests/bug42859.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug42859.phpt b/Zend/tests/bug42859.phpt
new file mode 100755
index 0000000000..6464f9b4c7
--- /dev/null
+++ b/Zend/tests/bug42859.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #42859 import always conflicts with internal classes
+--FILE--
+<?php
+namespace Foo;
+class Ex {}
+
+import Blah::Exception;
+import Blah::Ex;
+?>
+--EXPECTF--
+Fatal error: Import name 'Ex' conflicts with defined class in %sbug42859.php on line 6 \ No newline at end of file