[php-src] Issue #7791: DOMNode Reflection does not return properties

From: Date: Sun, 19 Dec 2021 07:56:32 +0000
Subject: [php-src] Issue #7791: DOMNode Reflection does not return properties
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238477@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7791 Author: staabm ### Description The following code: ```php <?php $c = new ReflectionClass("DOMNode"); $ps = $c->getProperties(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED); var_dump(count($ps)); foreach($ps as $p) { var_dump($p->name); var_dump($p->getType()); } ``` Resulted in this output: ``` int(0) ``` But I expected this output instead: a list of all properties, as documented in https://www.php.net/manual/en/class.domnode.php see https://sandbox.onlinephpfunctions.com/ ### PHP Version PHP 8.0.12 ### Operating System macos

« previous php.bugs (#238477) next »