mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
18 lines
359 B
PHP
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
|
|
|