title: PHP Notice: fwrite(): send failed with errno=32 Broken pipe
body: <p>I was trying to execute the php script through shell given <a href="https://github.com/venomous0x/WhatsAPI/tree/master/tests" rel="nofollow">Here</a> by :-</p>
  
  <pre><code>php whatsapp.php -s MobileNo Message
  </code></pre>
  
  <p>and  i got the following error :-</p>
  
  <pre><code>PHP Notice:  fwrite(): send of 111 bytes failed with errno=32 Broken pipe in     
  whatsprot.class.php on line 1923
  </code></pre>
  
  <p>and line 1923 in whatsprot.class.php corresponds to :-</p>
  
  <pre><code>fwrite($this-&gt;socket, $data, strlen($data));
  </code></pre>
  
  <p>whatsprot.class.php is <a href="https://github.com/venomous0x/WhatsAPI/tree/master/src/php" rel="nofollow">Here</a> </p>
  
  <p>Is there any fix to this problem? </p>