MemoryManager: fixed dumping of uninitialized properties

closes #4643
This commit is contained in:
Dylan K. Taylor 2021-12-13 12:11:49 +00:00
parent 22bb1ce8e0
commit 3be8472ae2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -325,6 +325,9 @@ class MemoryManager{
if(!$property->isPublic()){
$property->setAccessible(true);
}
if(!$property->isInitialized()){
continue;
}
$staticCount++;
$staticProperties[$className][$property->getName()] = self::continueDump($property->getValue(), $objects, $refCounts, 0, $maxNesting, $maxStringSize);
@ -448,6 +451,9 @@ class MemoryManager{
if(!$property->isPublic()){
$property->setAccessible(true);
}
if(!$property->isInitialized($object)){
continue;
}
$info["properties"][$name] = self::continueDump($property->getValue($object), $objects, $refCounts, 0, $maxNesting, $maxStringSize);
}