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


require_once 'common.php';

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


Validate XML package definition file.


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

Return value

bool - TRUE if valid


This function can not be called statically.

Set object representing frontend to use. (Previous) Test whether a string is a valid package name (Next)
Last updated: Tue, 22 May 2018 — 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.