From 19b63d5f87cd94cf1c71f4e0bdcbafc1f94a1e44 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Jun 2002 04:49:14 +0000 Subject: [PATCH] Added Dependancy check on XML - previously pear installer failed silently --- pear/PEAR/Common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index ac2c3b994f..3e36a6a7d2 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -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'); -- 2.50.1