PEAR_PackageFile::fromTgzFile

PEAR_PackageFile::fromTgzFile() – fromTgzFile

Synopsis

require_once '/PackageFile.php';

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

Description

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

Parameter

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

throws no exceptions thrown

Note

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: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.