summaryrefslogtreecommitdiff
path: root/Zend/tests/bug44827.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug44827.phpt')
-rw-r--r--Zend/tests/bug44827.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug44827.phpt b/Zend/tests/bug44827.phpt
new file mode 100644
index 0000000..a9f1d87
--- /dev/null
+++ b/Zend/tests/bug44827.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Bug #44827 (define() allows :: in constant names)
+--FILE--
+<?php
+define('foo::bar', 1);
+define('::', 1);
+?>
+--EXPECTF--
+Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
+
+Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d