PEAR_Common::validatePackageInfo()

PEAR_Common::validatePackageInfo() -- Validate XML package definition file

Synopsis

require_once 'common.php';

boolean PEAR_Common::validatePackageInfo (string $info, array &$errors, array &$warnings [, string $dir_prefix = ''])

Beschreibung

Validate XML package definition file.

Parameter

string $info

Filename of the package archive or of the package definition file

array $errors

Array that will contain the errors

array $warnings

Array that will contain the warnings

string $dir_prefix

directory where source files may be found, or empty if they are not available

Rückgabewert

bool - TRUE if valid

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.