summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_007.phpt')
-rw-r--r--Zend/tests/ns_007.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/ns_007.phpt b/Zend/tests/ns_007.phpt
new file mode 100644
index 0000000..2f4d136
--- /dev/null
+++ b/Zend/tests/ns_007.phpt
@@ -0,0 +1,13 @@
+--TEST--
+007: Run-time name conflict (php name)
+--FILE--
+<?php
+namespace test\ns1;
+
+class Exception {
+}
+
+$x = "Exception";
+echo get_class(new $x),"\n";
+--EXPECT--
+Exception