cvs: php4 /pear/PEAR Common.php
| From: | Alan Knowles | Date: | Mon, 17 Jun 2002 04:49:15 +0000 |
| Subject: | cvs: php4 /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4653@lists.php.net to get a copy of this message | ||
alan_k Mon Jun 17 00:49:15 2002 EDT
Modified files:
/php4/pear/PEAR Common.php
Log:
Added Dependancy check on XML - previously pear installer failed silently
Index: php4/pear/PEAR/Common.php
diff -u php4/pear/PEAR/Common.php:1.72 php4/pear/PEAR/Common.php:1.73
--- php4/pear/PEAR/Common.php:1.72 Wed Jun 12 17:23:22 2002
+++ php4/pear/PEAR/Common.php Mon Jun 17 00:49:14 2002
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.72 2002/06/12 21:23:22 ssb Exp $
+// $Id: Common.php,v 1.73 2002/06/17 04:49:14 alan_k Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -742,6 +742,9 @@
*/
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');