array&
PEAR_PackageFile::fromPackageFile
(
string
$descfile
,
int
$state
,
string|false
$archive
= false
)
parse and return a package.xml object from a package.xml file, or a PEAR_Error object upon error.
$descfile
name of package.xml file
$state
package state (one of
PEAR_VALIDATE_*
constants)
$archive
full path to the full package .tgz file containing the package.xml, or false for none.
returns array with package information
throws no exceptions thrown
This function should be called statically.