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.
$file
name of packaged .tgz or .tar to extract and parse package.xml from
$state
package state (one of
PEAR_VALIDATE_*
constants)
returns success of parsing
throws no exceptions thrown
This function can not be called statically.