CrashDump: fixed a bug in crashdump generation

This commit is contained in:
Dylan K. Taylor 2020-12-23 21:53:12 +00:00
parent f0241043de
commit 9ed430acb9
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -170,6 +170,7 @@ class CrashDump{
}
$zlibEncoded = zlib_encode($json, ZLIB_ENCODING_DEFLATE, 9);
if($zlibEncoded === false) throw new AssumptionFailedError("ZLIB compression failed");
$this->encodedData = $zlibEncoded;
foreach(str_split(base64_encode($this->encodedData), 76) as $line){
$this->addLine($line);
}