1--TEST--
2Make sure constant updating works in the presence of virtual properties
3--FILE--
4<?php
5
6class Test {
7    public $prop { get {} }
8    public $prop2 = FOO;
9}
10define('FOO', 42);
11$test = new Test;
12var_dump($test->prop2);
13
14?>
15--EXPECT--
16int(42)
17