xref: /PHP-7.3/Zend/tests/bug44827.phpt (revision db8a6974)
1--TEST--
2Bug #44827 (define() allows :: in constant names)
3--FILE--
4<?php
5define('foo::bar', 1);
6define('::', 1);
7?>
8--EXPECTF--
9Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
10
11Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
12