I'm not sure whether this is from a client trying to connect using an old version of the protocol, or some error on the server side, but whichever it is I think there should be some kind of check in place to prevent a crash.
I got the following error:
PHP Error[8]: Uninitialized string offset: 3
in file /home/xxxx/Wrench/Frame/HybiFrame.php at line 273
assumes that $this->buffer[$i] is set, but I can't see anything to guarantee this (apart from perhaps the specification of the protocol), so I think we should perhaps check that $this->buffer[$i] is set in each iteration.
I'm not sure whether this is from a client trying to connect using an old version of the protocol, or some error on the server side, but whichever it is I think there should be some kind of check in place to prevent a crash.
I got the following error:
This is because the code:
assumes that
$this->buffer[$i]
is set, but I can't see anything to guarantee this (apart from perhaps the specification of the protocol), so I think we should perhaps check that$this->buffer[$i]
is set in each iteration.