PEAR_PackageFile::fromArray | PEAR_PackageFile::fromTgzFile |
PEAR | |
PEAR Manual | |
require_once '/PackageFile.php'; |
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.
name of package.xml file
package state (one of PEAR_VALIDATE_* constants)
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.
PEAR_PackageFile::fromArray | PEAR_PackageFile::fromTgzFile |
PEAR | |
PEAR Manual | |