projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b5a46b
)
Added test case for bug #44827
author
Ilia Alshanetsky
<iliaa@php.net>
Mon, 25 Jan 2010 13:08:43 +0000
(13:08 +0000)
committer
Ilia Alshanetsky
<iliaa@php.net>
Mon, 25 Jan 2010 13:08:43 +0000
(13:08 +0000)
Zend/tests/bug44827.phpt
[new file with mode: 0644]
patch
|
blob
diff --git a/Zend/tests/bug44827.phpt
b/Zend/tests/bug44827.phpt
new file mode 100644
(file)
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