summaryrefslogtreecommitdiff
path: root/Zend/tests/bug44827.phpt
blob: a9f1d87d246c14e483c8a0562a7e31c6c23b6151 (plain)
1
2
3
4
5
6
7
8
9
10
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