PharData::extractTo

(PHP >= 5.3.0, PECL phar >= 2.0.0) Extract the contents of a tar/zip archive to a directory bool PharData::extractTo ( string $pathto [, string|array $files [, bool $overwrite = false ]] ) Extract all files within a tar/zip archive to disk. Extracted files and directories preserve permissions as stored in the archive. The optional parameters allow optional control over which files are extracted, and whether existing

PharData::isWritable

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns true if the tar/zip archive can be modified bool PharData::isWritable ( void ) This method returns TRUE if the tar/zip archive on disk is not read-only. Unlike Phar::isWritable(), data-only tar/zip archives can be modified even if phar.readonly is set to 1. Returns: Returns TRUE if the tar/zip archive can be modified

PharData::offsetSet

(PHP >= 5.3.0, PECL phar >= 2.0.0) set the contents of a file within the tar/zip to those of an external file or string void PharData::offsetSet ( string $offset, string $value ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a tar/zip archive using array access brackets. offsetSet is used for modifying an existing file, or adding a new file to a tar/zip archive.

PharData::offsetUnset

(PHP >= 5.3.0, PECL phar >= 2.0.0) remove a file from a tar/zip archive bool PharData::offsetUnset ( string $offset ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a tar/zip archive using array access brackets. offsetUnset is used for deleting an existing file, and is called by the unset() language construct. Parameters: o

PharData::setAlias

(PHP >= 5.3.0, PECL phar >= 2.0.0) dummy function (Phar::setAlias is not valid for PharData) bool PharData::setAlias ( string $alias ) Non-executable tar/zip archives cannot have an alias, so this method simply throws an exception. Parameters: alias A shorthand string that this archive can be referred to in phar stream wrapper access. This parameter is ignored.

PharData::setDefaultStub

(PHP >= 5.3.0, PECL phar >= 2.0.0) dummy function (Phar::setDefaultStub is not valid for PharData) bool PharData::setDefaultStub ([ string $index [, string $webindex ]] ) Non-executable tar/zip archives cannot have a stub, so this method simply throws an exception. Parameters: index Relative path within the phar archive to run if accessed on the command-line

Phar::setMetadata

(PHP >= 5.3.0, PECL phar >= 1.0.0) Sets phar archive meta-data public void Phar::setMetadata ( mixed $metadata ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Phar::setMetadata() should be used to store customized data that describes something about the phar archive as a complete entity. PharFileInfo::setMeta

Phar::setSignatureAlgorithm

(PHP >= 5.3.0, PECL phar >= 1.1.0) set the signature algorithm for a phar and apply it. public void Phar::setSignatureAlgorithm ( int $sigtype ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar

PharData::setStub

(PHP >= 5.3.0, PECL phar >= 2.0.0) dummy function (Phar::setStub is not valid for PharData) bool PharData::setStub ( string $stub [, int $len = -1 ] ) Non-executable tar/zip archives cannot have a stub, so this method simply throws an exception. Parameters: stub A string or an open stream handle to use as the executable stub for this phar archive. This parameter is

PharFileInfo::chmod

(PHP >= 5.3.0, PECL phar >= 1.0.0) Sets file-specific permission bits public void PharFileInfo::chmod ( int $permissions ) PharFileInfo::chmod() allows setting of the executable file permissions bit, as well as read-only bits. Writeable bits are ignored, and set at runtime based on the phar.readonly INI variable. As with all functionality that modifies the contents of a phar, the phar.readonly INI variable must be off