PEAR_PackageFile::fromXmlString() – fromXmlString


require_once '/PackageFile.php';

PEAR_PackageFile_v1|PEAR_PackageFile_v2|PEAR_Error& PEAR_PackageFile::fromXmlString ( string $data , int $state , string $file , string|false $archive = false )


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


string $data

contents of package.xml file

integer $state

package state (one of PEAR_VALIDATE_* constants)

string $file

full path to the package.xml file (and the files it references)

string|FALSE $archive

full path to the full package .tgz file containing the package.xml, or false for none.


throws no exceptions thrown


This function can not be called statically.

fromTgzFile (Previous) parserFactory (Next)
Last updated: Sun, 19 Feb 2017 — 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:
  • English

User Notes:

There are no user contributed notes for this page.