Revert "MemoryDump: fixed duplicated properties, reduce useless noise"

This reverts commit efd67a132e.
This commit is contained in:
Dylan K. Taylor
2021-01-26 20:26:35 +00:00
parent 269a389a97
commit 5384e2ba9d

View File

@ -451,16 +451,22 @@ class MemoryManager{
$info["properties"] = []; $info["properties"] = [];
foreach($reflection->getProperties() as $property){ for($original = $reflection; $reflection !== false; $reflection = $reflection->getParentClass()){
if($property->isStatic()){ foreach($reflection->getProperties() as $property){
continue; if($property->isStatic()){
} continue;
}
if(!$property->isPublic()){ $name = $property->getName();
$property->setAccessible(true); if($reflection !== $original and !$property->isPublic()){
} $name = $reflection->getName() . ":" . $name;
}
if(!$property->isPublic()){
$property->setAccessible(true);
}
$info["properties"][$property->getName()] = self::continueDump($property->getValue($object), $objects, $refCounts, 0, $maxNesting, $maxStringSize); $info["properties"][$name] = self::continueDump($property->getValue($object), $objects, $refCounts, 0, $maxNesting, $maxStringSize);
}
} }
} }