Phar::interceptFileFuncs

(PHP >= 5.3.0, PECL phar >= 2.0.0) instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions final public static void Phar::interceptFileFuncs ( void ) instructs phar to intercept fopen(), readfile(), file_get_contents(), opendir(), and all of the stat-related functions. If any of these functions is called from within a phar archive with a relative path, the call is modified

Phar::isBuffering

(PHP >= 5.3.0, PECL phar >= 1.0.0) Used to determine whether Phar write operations are being buffered, or are flushing directly to disk public bool Phar::isBuffering ( void ) This method can be used to determine whether a Phar will save changes to disk immediately, or whether a call to Phar::stopBuffering() is needed to enable saving changes. Phar write buffering is per-archive, buffering active for the foo.phar Phar

Phar::isCompressed

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on) public mixed Phar::isCompressed ( void ) 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. Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and

Phar::isFileFormat

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter public bool Phar::isFileFormat ( int $format ) Parameters: format Either Phar::PHAR, Phar::TAR, or Phar::ZIP to test for the format of the archive. Returns: Returns TRUE if the phar archive matches the file f

Phar::isValidPharFilename

(PHP >= 5.3.0, PECL phar >= 1.2.0) Returns whether the given filename is a valid phar filename final public static bool Phar::isValidPharFilename ( string $filename [, bool $executable = true ] ) Returns whether the given filename is a valid phar filename that will be recognized as a phar archive by the phar extension. This can be used to test a name without having to instantiate a phar archive and catch the inevitabl

Phar::isWritable

(Unknown) Returns true if the phar archive can be modified public bool Phar::isWritable ( void ) This method returns TRUE if phar.readonly is 0, and the actual phar archive on disk is not read-only. Returns: Returns TRUE if the phar archive can be modified See also: Phar::canWrite() -

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

Phar::mapPhar

(PHP >= 5.3.0, PECL phar >= 1.0.0) Reads the currently executed file (a phar) and registers its manifest final public static bool Phar::mapPhar ([ string $alias [, int $dataoffset = 0 ]] ) This static method can only be used inside a Phar archive's loader stub in order to initialize the phar when it is directly executed, or when it is included in another script. Parameters: ali

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::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