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