Fixed static property refcount bug

This commit is contained in:
Dylan K. Taylor 2017-04-28 18:43:36 +01:00
parent b542277eca
commit a22306d418

View File

@ -276,7 +276,7 @@ class MemoryManager{
fwrite($obData, "$hash@$className: " . json_encode($info, JSON_UNESCAPED_SLASHES) . "\n");
if(!isset($objects["staticProperties"][$className])){
if(!isset($staticProperties[$className])){
$staticProperties[$className] = [];
foreach($reflection->getProperties() as $property){
if(!$property->isStatic() or $property->getDeclaringClass()->getName() !== $className){