php-src/tests/lang/bug44827.phpt
2010-02-13 01:08:04 +00:00

18 lines
359 B
PHP

--TEST--
Bug #44827 (Class error when trying to access :: as constant)
--CREDITS--
Sebastian Schürmann
sebs@php.net
Testfest Munich 2009
--FILE--
<?php
define('::', true);
var_dump(constant('::'));
?>
--EXPECTF--
Warning: Class constants cannot be defined or redefined in %s on line %d
Warning: constant(): Couldn't find constant :: in %s on line %d
NULL