elephant.io icon indicating copy to clipboard operation
elephant.io copied to clipboard

Undefined offset: 2 in AbstractSocketIO.php on line 118

Open mobula9 opened this issue 9 years ago • 2 comments

After a few time (one minute?) in a while loop around the "read()" function :

PHP Notice:  Undefined offset: 2 in (project..)/vendor/wisembly/elephant.io/src/Engine/AbstractSocketIO.php on line 118

This bug concerne the line bellow :

$mask = ($bytes[2] & 0b10000000) >> 7;

The socket.io package version used is 1.4.5, the Express version is 4.10.2.

Thanks,

Lucas.

mobula9 avatar Apr 23 '16 11:04 mobula9

Hi, is there any fix for that? I a getting this error now

Thanks

zekylaf avatar Aug 29 '16 09:08 zekylaf

Hum, the read() method is more a poc than anything else, actually. Would you mind checking the content of $bytes (after the unpack) ? Thanks

Taluu avatar Aug 29 '16 10:08 Taluu