This method is able to extract information about a package from a .tgz
archive or from a XML package definition file.
public fromAnyFile ( string $info, integer $state ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
$info | string | file name |
$state | integer | package state (one of PEAR_VALIDATE_* constants) |
Результат | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |