mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Revert "MemoryDump: fixed duplicated properties, reduce useless noise"
This reverts commit efd67a132e
.
This commit is contained in:
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user