1--TEST--
2Immediate constant access on new object without constructor parentheses
3--FILE--
4<?php
5
6class A
7{
8    const C = 'constant';
9}
10
11echo new A::C;
12
13?>
14--EXPECTF--
15Parse error: syntax error, unexpected identifier "C", expecting variable or "$" in %s on line %d
16