socket.php
public function read()
    {
        if ($this->isError() || ! $this->isOpen()) {
            return false;
        }
        $raw = @fread($this->handle, $this->block_size);
        if ($raw === false) {
            $this->setError('Cannot read from socket');
            $this->close();
        }

        return $raw;
    }
public function read()
    {
        if ($this->isError() || ! $this->isOpen()) {
            return false;
        }
        $raw = @fread($this->handle, $this->block_size);
        if ($raw === false) {
            $this->setError('Cannot read from socket');
            $this->close();
        }

        return $raw;
    }
Reads data from the socket.

@todo  The error suppresion is a workaround for PHP4 always throwing a
warning with a secure socket.

@return integer/boolean           Incoming bytes. False on error.