summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug80370.phpt
blob: 41d01c2e7e38bf30f04b54e3e56c86dbf0686b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
--FILE--
<?php
class Foobar {

}

$foobar = new Foobar();
$foobar->bar = 42;

$reflectionObject = new ReflectionObject($foobar);
$reflectionProperty = $reflectionObject->getProperty('bar');
var_dump($reflectionProperty->getAttributes());
--EXPECT--
array(0) {
}