1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00
Files
archived-php-src/ext/reflection/tests/bug80370.phpt
2020-11-17 10:54:27 +01:00

18 lines
349 B
PHP

--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) {
}