summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_008.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_008.phpt')
-rw-r--r--Zend/tests/ns_008.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/ns_008.phpt b/Zend/tests/ns_008.phpt
new file mode 100644
index 0000000..2c2c918
--- /dev/null
+++ b/Zend/tests/ns_008.phpt
@@ -0,0 +1,13 @@
+--TEST--
+008: __NAMESPACE__ constant and runtime names (ns name)
+--FILE--
+<?php
+namespace test;
+
+class foo {
+}
+
+$x = __NAMESPACE__ . "\\foo";
+echo get_class(new $x),"\n";
+--EXPECT--
+test\foo