1--TEST-- 2Bug #44827 (define() allows :: in constant names) 3--FILE-- 4<?php 5 6try { 7 define('foo::bar', 1); 8} catch (ValueError $exception) { 9 echo $exception->getMessage() . "\n"; 10} 11 12try { 13 define('::', 1); 14} catch (ValueError $exception) { 15 echo $exception->getMessage() . "\n"; 16} 17 18?> 19--EXPECT-- 20define(): Argument #1 ($constant_name) cannot be a class constant 21define(): Argument #1 ($constant_name) cannot be a class constant 22