public function getSize()
    {
        if (is_resource($this->stream) === true) {
            $stats = fstat($this->stream);
            if (isset($stats['size'])) {
                return $stats['size'];
            }
        }
        return null;
    }
public function getSize()
    {
        if (is_resource($this->stream) === true) {
            $stats = fstat($this->stream);
            if (isset($stats['size'])) {
                return $stats['size'];
            }
        }
        return null;
    }
public function getSize ( ) { if ( is_resource ( $ this -> stream ) === true ) { $ stats = fstat ( $ this -> stream ) ; if ( isset ( $ stats [ 'size' ] ) ) { return $ stats [ 'size' ] ; } } return null ; }
Get the size of the stream if known
Get the size of the stream if known