liujx 6年前

修改理由:

代码错误

详细描述:

你gitlab代码改了,这个文档没有改哦,其实我就是想蹭参与,希望不要介意 👻


此投稿已在 6年前 合并。

内容修改:

红色背景 为原始内容

绿色背景 为新增或者修改的内容

OldNewDifferences
191191       $this->current_message_length = $payload_length;
192192       $payload_type = 1;
193193       echo $payload_length . "\n";
194    } else if ($payload_length = 126) {
 194   } else if ($payload_length == 126) {
195195       $payload_type = 2;
196196       $this->current_message_length = ((ord($buffer[2]) & 0xff) << 8) | (ord($buffer[3]) & 0xff);
197197       echo $this->current_message_length;
 
222222```
223223当payload_length的长度小于125的话,数据长度就等于片段长度。
224224```
225 if ($payload_length = 126) {
 225if ($payload_length == 126) {
226226       $payload_type = 2;
227227       $this->current_message_length = ((ord($buffer[2]) & 0xff) << 8) | (ord($buffer[3]) & 0xff);
228228       echo $this->current_message_length;