public function stream_truncate($size)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $success = ftruncate($this->fileHandle, $size);
        self::register();
        return $success;
    }
public function stream_truncate($size)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $success = ftruncate($this->fileHandle, $size);
        self::register();
        return $success;
    }
public function stream_truncate ( $ size ) { if ( $ this -> fileHandle === null ) { return false ; } self :: restore ( ) ; $ success = ftruncate ( $ this -> fileHandle , $ size ) ; self :: register ( ) ; return $ success ; }
Truncates a file to the given size

@param int $size Truncate to this size
@return bool
Truncates a file to the given size