protected function readStream($id)
    {
        $isDescriptorFile = isset($this->descriptorspec[$id][0]) && $this->descriptorspec[$id][0] == 'file';
        $isDescriptorResource = isset($this->descriptorspec[$id]) && is_resource($this->descriptorspec[$id]);
        if ($isDescriptorFile || $isDescriptorResource) {
            return '';
        }

        return stream_get_contents($this->pipes[$id]);
    }
protected function readStream($id)
    {
        $isDescriptorFile = isset($this->descriptorspec[$id][0]) && $this->descriptorspec[$id][0] == 'file';
        $isDescriptorResource = isset($this->descriptorspec[$id]) && is_resource($this->descriptorspec[$id]);
        if ($isDescriptorFile || $isDescriptorResource) {
            return '';
        }

        return stream_get_contents($this->pipes[$id]);
    }
protected function readStream ( $ id ) { $ isDescriptorFile = isset ( $ this -> descriptorspec [ $ id ] [ 0 ] ) && $ this -> descriptorspec [ $ id ] [ 0 ] == 'file' ; $ isDescriptorResource = isset ( $ this -> descriptorspec [ $ id ] ) && is_resource ( $ this -> descriptorspec [ $ id ] ) ; if ( $ isDescriptorFile || $ isDescriptorResource ) { return '' ; } return stream_get_contents ( $ this -> pipes [ $ id ] ) ; }
Reads the current contents of the specified pipe.

@param $id
@return string
Reads the current contents of the specified pipe .