xref: /PHP-8.1/ext/reflection/tests/bug80370.phpt (revision 1727d96d)
1--TEST--
2Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
3--FILE--
4<?php
5class Foobar {
6
7}
8
9$foobar = new Foobar();
10$foobar->bar = 42;
11
12$reflectionObject = new ReflectionObject($foobar);
13$reflectionProperty = $reflectionObject->getProperty('bar');
14var_dump($reflectionProperty->getAttributes());
15--EXPECT--
16array(0) {
17}
18