Руководство по PHP
Пред. |  | След.

# PharFileInfo->isCompressed

(no version information, might be only in CVS)

PharFileInfo->isCompressed -- Returns whether the entry is compressed

## Описание

bool PharFileInfo->isCompressed ( void )

This returns whether a file is compressed within a Phar archive with either Gzip or Bzip2 compression.

## Возвращаемые значения

`TRUE` if the file is compressed within the Phar archive, `FALSE` if not.

## Примеры

Пример 1. A PharFileInfo->isCompressed() example

`<?php $p = new Phar('my.phar'); $p['myfile.txt'] = 'hi'; $file = $p['myfile.txt']; var_dump($file->isCompressed()); ?>`

Результат выполнения данного примера:

    bool(false)

## Смотрите также

PharFileInfo->getCompressedSize()
PharFileInfo->isCompressedGZ()
PharFileInfo->isCompressedBZIP2()

Пред. | Начало | След.
PharFileInfo::isCRCChecked | Уровень выше | PharFileInfo->isCompressedBZIP2