]> granicus.if.org Git - php/commitdiff
Added test case for bug #44827
authorIlia Alshanetsky <iliaa@php.net>
Mon, 25 Jan 2010 13:08:43 +0000 (13:08 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 25 Jan 2010 13:08:43 +0000 (13:08 +0000)
Zend/tests/bug44827.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug44827.phpt b/Zend/tests/bug44827.phpt
new file mode 100644 (file)
index 0000000..a9f1d87
--- /dev/null
@@ -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