Phar::setDefaultStub

(Unknown) Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader public bool Phar::setDefaultStub ([ string $index [, string $webindex ]] ) 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. This method is a convenience method that combines the functionality of Phar::createDefaultStub() and

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 [, string $privatekey ] ) 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 Pha

Phar::running

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns the full path on disk or full phar URL to the currently executing Phar archive final public static string Phar::running ([ bool $retphar = true ] ) Returns the full path to the running phar archive. This is intended for use much like the __FILE__ magic constant, and only has effect inside an executing phar archive. Inside the stub of an archive, Phar::running() returns "".

Phar::offsetUnset

(PHP >= 5.3.0, PECL phar >= 1.0.0) remove a file from a phar public bool Phar::offsetUnset ( string $offset ) 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. This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. offsetUn

Phar::offsetGet

(PHP >= 5.3.0, PECL phar >= 1.0.0) Gets a PharFileInfo object for a specific file public int Phar::offsetGet ( string $offset ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. Phar::offsetGet() is used for retrieving files from a Phar archive. Parameters: offset The fi

Phar::mungServer

(Unknown) Defines a list of up to 4 $_SERVER variables that should be modified for execution final public static void Phar::mungServer ( array $munglist ) Phar::mungServer() should only be called within the stub of a phar archive. Defines a list of up to 4 $_SERVER variables that should be modified for execution. Variables that can be modified to remove traces of phar execution are REQUEST_URI, PHP_SELF, SCRIPT_NAME and S

Phar::mount

(PHP >= 5.3.0, PECL phar >= 2.0.0) Mount an external path or file to a virtual location within the phar archive final public static void Phar::mount ( string $pharpath, string $externalpath ) Much like the unix file system concept of mounting external devices to paths within the directory tree, Phar::mount() allows referring to external files and directories as if they were inside of an archive. This allows powerful a

Phar::offsetSet

(PHP >= 5.3.0, PECL phar >= 1.0.0) set the contents of an internal file to those of an external file public void Phar::offsetSet ( string $offset, string $value ) 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. This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents o

Phar::offsetExists

(PHP >= 5.3.0, PECL phar >= 1.0.0) determines whether a file exists in the phar public bool Phar::offsetExists ( string $offset ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. offsetExists() is called whenever isset() is called. Parameters: offset The filename (rel

Phar::loadPhar

(PHP >= 5.3.0, PECL phar >= 1.0.0) Loads any phar archive with an alias final public static bool Phar::loadPhar ( string $filename [, string $alias ] ) This can be used to read the contents of an external Phar archive. This is most useful for assigning an alias to a phar so that subsequent references to the phar can use the shorter alias, or for loading Phar archives that only contain data and are not intended for exec