PHP警告:stream_socket_sendto():管道损坏

时间:2020-04-29 12:48:53

标签: php

我已经为我的php脚本实现了外部类,并且它调用了以下警告:

PHP Warning: stream_socket_sendto(): Broken pipe

引用的代码:

    /**
     * writes the contents of string to the file stream pointed to by handle 
     * If an error occurs, returns FALSE.
     * @access protected
     * @param string $string The string that is to be written
     * @return string Returns a result code, as an integer. 
     */
    protected function _streamQuery($query) {
        $this->edebug($query);
        return stream_socket_sendto($this->stream, $query . self::CRLF);
    }

如何解决该警告?

0 个答案:

没有答案