1--TEST--
2Lazy objects: get_properties failure
3--FILE--
4<?php
5
6class C {
7    public int $a;
8    public $b;
9}
10
11$reflector = new ReflectionClass(C::class);
12
13$a = $reflector->newLazyProxy(function () {
14    throw new \Exception('Initializer');
15});
16
17$b = new C();
18
19try {
20    var_dump($a > $b);
21} catch (Exception $e) {
22    printf("%s: %s\n", $e::class, $e->getMessage());
23}
24
25?>
26--EXPECT--
27Exception: Initializer
28