PHP Предупреждение: stream_socket_sendto (): сломанный канал - PullRequest
0 голосов
/ 29 апреля 2020

Я реализовал внешний класс в своем скрипте 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);
    }

Как решить это предупреждение?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...