LightArray: collect garbage on unserialize

serialize/unserialize don't preserve const refs, so this is necessary to reassign global refs post-unserialize
This commit is contained in:
Dylan K. Taylor 2019-10-22 20:09:51 +01:00
parent bf0e855a9b
commit 296825b87e

View File

@ -92,4 +92,9 @@ final class LightArray{
public function getData() : string{
return $this->data;
}
public function __wakeup(){
//const refs aren't preserved when unserializing
$this->collectGarbage();
}
}