mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Fixed static property refcount bug
This commit is contained in:
parent
b542277eca
commit
a22306d418
@ -276,7 +276,7 @@ class MemoryManager{
|
|||||||
|
|
||||||
fwrite($obData, "$hash@$className: " . json_encode($info, JSON_UNESCAPED_SLASHES) . "\n");
|
fwrite($obData, "$hash@$className: " . json_encode($info, JSON_UNESCAPED_SLASHES) . "\n");
|
||||||
|
|
||||||
if(!isset($objects["staticProperties"][$className])){
|
if(!isset($staticProperties[$className])){
|
||||||
$staticProperties[$className] = [];
|
$staticProperties[$className] = [];
|
||||||
foreach($reflection->getProperties() as $property){
|
foreach($reflection->getProperties() as $property){
|
||||||
if(!$property->isStatic() or $property->getDeclaringClass()->getName() !== $className){
|
if(!$property->isStatic() or $property->getDeclaringClass()->getName() !== $className){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user