Skip to content

Commit 8eb985d

Browse files
committed
Merge pull request #12 from jaytaph/patch-1
Initialize $payload
2 parents a779bbe + 4518fe8 commit 8eb985d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ public function receive() {
112112
// Masking?
113113
$mask = (boolean) (ord($data[1]) >> 7); // Bit 0 in byte 1
114114

115+
$payload = "";
116+
115117
// Payload length
116118
$payload_length = (integer) ord($data[1]) & 127; // Bits 1-7 in byte 1
117119
if ($payload_length > 125) {

0 commit comments

Comments
 (0)