PEAR_PackageFile::fromTgzFile() – fromTgzFile


require_once '/PackageFile.php';

PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& PEAR_PackageFile::fromTgzFile ( string $file , int $state )


parse and return a package.xml object from a packaged archive, or a PEAR_Error object upon error.


string $file

name of packaged .tgz or .tar to extract and parse package.xml from

integer $state

package state (one of PEAR_VALIDATE_* constants)

Return value

returns success of parsing


throws no exceptions thrown


This function can not be called statically.

Returns information about a package file. Expects the name of a package.xml file as input. (Previous) fromXmlString (Next)
Last updated: Tue, 24 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.