This commit is contained in:
DomoChip 2022-06-30 17:38:45 +02:00
parent 0050245eb4
commit 93050e65a0

View File

@ -158,7 +158,7 @@ class MessageBuffer {
$payloadLenBytes = $payload_length === 126 ? 2 : 8;
$headerSize += $payloadLenBytes;
$bytesToUpack = substr($data, $frameStart + 2, $payloadLenBytes);
$payloadLenOver2GB = false
$payloadLenOver2GB = false;
if ($payload_length === 126){
$payload_length = unpack('n', $bytesToUpack)[1];