PHP Classes

Socket.php correction

Recommend this page to a friend!

      Client and Server Socket  >  All threads  >  Socket.php correction  >  (Un) Subscribe thread alerts  
Subject:Socket.php correction
Summary:fix
Messages:1
Author:dijir
Date:2016-10-30 13:51:25
 

  1. Socket.php correction   Reply   Report abuse  
Picture of dijir dijir - 2016-10-30 13:51:25
InetAddress loop are reading undefined offset.
To fix, change this line:
} while (!$this->bConnected && $i++ < count($addrs));
to
} while (!$this->bConnected && ++$i < count($addrs));