xref: /php-src/Zend/tests/gh16615_001.phpt (revision 3d3b22dd)
1--TEST--
2GH-16615 001 (Assertion failure in zend_std_read_property)
3--FILE--
4<?php
5
6class Foo {
7    public string $bar {
8        set => $value;
9    }
10}
11
12$reflector = new ReflectionClass(Foo::class);
13
14// Adds IS_PROP_LAZY to prop flags
15$foo = $reflector->newLazyGhost(function ($ghost) {
16    $ghost->bar = 'bar';
17});
18
19echo $foo->bar;
20
21?>
22--EXPECT--
23bar
24