title: PHP_NORMAL_READ cutting off the data being sent
body: <p>I need some help please,I have problem in reading the binary data that was sent by the device via socket.I could not receive the exact data that was sent. I am using this code</p>
  
  <pre><code>$data = @socket_read($read_sock,2048,PHP_NORMAL_READ);
  </code></pre>
  
  <p>I am using PHP_NORMAL_READ because it will stop reading with this "\r\n".</p>
  
  <p>but when I receive,the data is not exact it only receive few binary data.</p>