1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/reflection/tests/bug80370.phpt
Ilija Tovilo f39b5c4c25 Close PHP tags in tests
Closes GH-12422
2023-10-18 17:34:10 +02:00

20 lines
378 B
PHP

--TEST--
Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
--FILE--
<?php
#[AllowDynamicProperties]
class Foobar {
}
$foobar = new Foobar();
$foobar->bar = 42;
$reflectionObject = new ReflectionObject($foobar);
$reflectionProperty = $reflectionObject->getProperty('bar');
var_dump($reflectionProperty->getAttributes());
?>
--EXPECT--
array(0) {
}