PHP: PharFileInfo->isCompressed - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

PharFileInfo->isCompressedBZIP2 PharFileInfo::isCRCChecked

Last updated: Sat, 27 Jan 2007

view this page in

# 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()

add a note User Contributed Notes
PharFileInfo->isCompressed
There are no user contributed notes for this page.
PharFileInfo->isCompressedBZIP2 PharFileInfo::isCRCChecked

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST