xref: /PHP-5.6/tests/lang/bug44827.phpt (revision f9843495)
1--TEST--
2Bug #44827 (Class error when trying to access :: as constant)
3--CREDITS--
4Sebastian Schürmann
5sebs@php.net
6Testfest Munich 2009
7--FILE--
8<?php
9define('::', true);
10var_dump(constant('::'));
11?>
12--EXPECTF--
13Warning: Class constants cannot be defined or redefined in %s on line %d
14
15Warning: constant(): Couldn't find constant :: in %s on line %d
16NULL
17
18