elephant.io
elephant.io copied to clipboard
Undefined offset: 2 in AbstractSocketIO.php on line 118
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.
Hi, is there any fix for that? I a getting this error now
Thanks
Hum, the read() method is more a poc than anything else, actually. Would you mind checking the content of $bytes (after the unpack) ? Thanks