summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_050.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_050.phpt')
-rw-r--r--Zend/tests/ns_050.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/ns_050.phpt b/Zend/tests/ns_050.phpt
new file mode 100644
index 0000000..f827ec8
--- /dev/null
+++ b/Zend/tests/ns_050.phpt
@@ -0,0 +1,14 @@
+--TEST--
+050: Name conflict and compile-time constants (ns name)
+--FILE--
+<?php
+namespace test\ns1;
+
+const INI_ALL = 0;
+
+function foo($x = INI_ALL) {
+ var_dump($x);
+}
+foo();
+--EXPECT--
+int(0)