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 = '' )

Description

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

Return value

bool - TRUE if valid

Note

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: Sat, 25 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.