Added Dependancy check on XML - previously pear installer failed silently

This commit is contained in:
Alan Knowles 2002-06-17 04:49:14 +00:00
parent 4e37016cb6
commit 19b63d5f87

View File

@ -742,6 +742,9 @@ class PEAR_Common extends PEAR
*/
function infoFromString($data)
{
require_once('PEAR/Dependency.php');
if ($error = PEAR_Dependency::checkExtension('xml'))
return $this->raiseError($error);
$xp = @xml_parser_create();
if (!$xp) {
return $this->raiseError('Unable to create XML parser');