summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-01-25 13:08:43 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2010-01-25 13:08:43 (GMT)
commitdb8a6974fb44c47537a4979178e23640f6dc898f (patch)
tree49ffae6090c00094472cc326ca82b0f5d2575b6b /Zend
parent8b5a46b3cd496c5162531a95a135f6b55a564ce2 (diff)
downloadphp-db8a6974fb44c47537a4979178e23640f6dc898f.tar.gz
Added test case for bug #44827
Diffstat (limited to 'Zend')
-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