xml not dl'ed by Installer - patch

From: Date: Sat, 25 May 2002 06:00:29 +0000
Subject: xml not dl'ed by Installer - patch
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6409@lists.php.net to get a copy of this message
this is stopping packages getting registered if xml is not compiled into php... regards alan Index: Common.php =================================================================== RCS file: /repository/php4/pear/PEAR/Common.php,v retrieving revision 1.62 diff -u -r1.62 Common.php
--- Common.php  21 May 2002 02:31:23 -0000      1.62
+++ Common.php 25 May 2002 05:56:45 -0000 @@ -24,6 +24,15 @@ require_once 'System.php'; require_once 'PEAR/Config.php'; +if (!function_exists('xml_parser_create')) { +// Win 32 fix. From: "Leo West" <lwest@imaginet.fr>
+    if($WINDIR) {
+        dl("php3_xml.dll");
+    } else {
+        dl("xml.so");
+    }
+} + // {{{ globals /** @@ -708,7 +718,8 @@
     */
    function infoFromString($data)
    {
-        $xp = @xml_parser_create();
+        $xp = xml_parser_create();
        if (!$xp) {
            return $this->raiseError('Unable to create XML parser');
        }


« previous php.pear.dev (#6409) next »