PharData::setStub
PharFileInfo::chmod
Phar
PHP Manual

# The PharFileInfo class

## Introduction

The PharFileInfo class provides a high-level interface to the contents and attributes of a single file within a phar archive.

## Class synopsis

PharFileInfo
PharFileInfo extends SplFileInfo {
/* Properties */
/* Methods */
void PharFileInfo::chmod ( int `$permissions` )
bool PharFileInfo::compress ( int `$compression` )
void PharFileInfo::__construct ( string `$entry` )
bool PharFileInfo::decompress ( void )
bool PharFileInfo::delMetadata ( void )
int PharFileInfo::getCRC32 ( void )
int PharFileInfo::getCompressedSize ( void )
mixed PharFileInfo::getMetaData ( void )
int PharFileInfo::getPharFlags ( void )
bool PharFileInfo::hasMetadata ( void )
bool PharFileInfo::isCRCChecked ( void )
bool PharFileInfo::isCompressed ([ int `$compression_type` ] )
bool PharFileInfo::isCompressedBZIP2 ( void )
bool PharFileInfo::isCompressedGZ ( void )
bool PharFileInfo::setCompressedBZIP2 ( void )
bool PharFileInfo::setCompressedGZ ( void )
void PharFileInfo::setMetaData ( mixed `$metadata` )
bool PharFileInfo::setUncompressed ( void )
}

## Table of Contents

- PharFileInfo::chmod — Sets file-specific permission bits
- PharFileInfo::compress — Compresses the current Phar entry with either zlib or bzip2 compression
- PharFileInfo::__construct — Construct a Phar entry object
- PharFileInfo::decompress — Decompresses the current Phar entry within the phar
- PharFileInfo::delMetadata — Deletes the metadata of the entry
- PharFileInfo::getCRC32 — Returns CRC32 code or throws an exception if CRC has not been verified
- PharFileInfo::getCompressedSize — Returns the actual size of the file (with compression) inside the Phar archive
- PharFileInfo::getMetaData — Returns file-specific meta-data saved with a file
- PharFileInfo::getPharFlags — Returns the Phar file entry flags
- PharFileInfo::hasMetadata — Returns the metadata of the entry
- PharFileInfo::isCRCChecked — Returns whether file entry has had its CRC verified
- PharFileInfo::isCompressed — Returns whether the entry is compressed
- PharFileInfo::isCompressedBZIP2 — Returns whether the entry is compressed using bzip2
- PharFileInfo::isCompressedGZ — Returns whether the entry is compressed using gz
- PharFileInfo::setCompressedBZIP2 — Compresses the current Phar entry within the phar using Bzip2 compression
- PharFileInfo::setCompressedGZ — Compresses the current Phar entry within the phar using gz compression
- PharFileInfo::setMetaData — Sets file-specific meta-data saved with a file
- PharFileInfo::setUncompressed — Uncompresses the current Phar entry within the phar, if it is compressed

PharData::setStub
PharFileInfo::chmod
Phar
PHP Manual