PHP注意事项:fwrite():发送失败,错误号=32管道损坏

xmakbtuz  于 2023-01-16  发布在  PHP
关注(0)|答案(1)|浏览(710)

我正试图通过shell执行php脚本给定Here由:-

php whatsapp.php -s MobileNo Message

我得到了以下错误:-

PHP Notice:  fwrite(): send of 111 bytes failed with errno=32 Broken pipe in     
whatsprot.class.php on line 1923

whatsprot.class.php中的第1923行对应于:

fwrite($this->socket, $data, strlen($data));

php是什么
这个问题有什么解决办法吗?

zpf6vheq

zpf6vheq1#

这可能是因为你的数据包含'utf-8'字符。我有类似的问题是由它造成的。
异常错误:mysql_query():发送1462592字节失败,错误号= 32管道破裂
我以前

mysql -u username -p database < dump_file # this is bad

导入的sql文件包含了大量的UTF8字符(泰语),但是我没有为[mysql]设置default-character-set = utf8,所以数据库中的错误编码数据导致了这个问题。

相关问题