1--TEST--
2Const class properties(runtime cache)
3--FILE--
4<?php
5class A {
6}
7
8$a = new A;
9
10echo "runtime\n";
11var_dump($a->{array()});
12var_dump($a->{1});
13var_dump($a->{function(){}});
14?>
15--EXPECTF--
16Warning: Array to string conversion in %s on line %d
17runtime
18
19Warning: Undefined property: A::$Array in %s on line %d
20NULL
21
22Warning: Undefined property: A::$1 in %s on line %d
23NULL
24
25Fatal error: Uncaught Error: Object of class Closure could not be converted to string in %s:%d
26Stack trace:
27#0 {main}
28  thrown in %s on line %d
29