ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
913 stars 375 forks source link

issue with ios 15.2 #132

Open cheviman opened 2 years ago

cheviman commented 2 years ago

im getting strange behavior when i connect a safari with ios 15.2.

the error is in this line $header['mask'] = $message[4] . $message[5] . $message[6] . $message[7];

and the error im getting is Notice: Uninitialized string offset: 4 in ..... Notice: Uninitialized string offset: 5 in ..... Notice: Uninitialized string offset: 6 n ..... Notice: Uninitialized string offset: 7 in .....

guldevec commented 2 years ago

Debug to see what is in the $message variable , if array sizeof/count , or length if string