summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_075.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/ns_075.phpt')
-rwxr-xr-xZend/tests/ns_075.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/ns_075.phpt b/Zend/tests/ns_075.phpt
new file mode 100755
index 000000000..0156e99eb
--- /dev/null
+++ b/Zend/tests/ns_075.phpt
@@ -0,0 +1,10 @@
+--TEST--
+075: Redefining compile-time constants
+--FILE--
+<?php
+namespace foo;
+const NULL = 1;
+
+echo NULL;
+--EXPECTF--
+Fatal error: Cannot redeclare constant 'NULL' in %sns_075.php on line %d