From: Alan Knowles Date: Mon, 17 Jun 2002 04:49:14 +0000 (+0000) Subject: Added Dependancy check on XML - previously pear installer failed silently X-Git-Tag: php-4.3.0dev_zend2_alpha2~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19b63d5f87cd94cf1c71f4e0bdcbafc1f94a1e44;p=php Added Dependancy check on XML - previously pear installer failed silently --- 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');