list packages structure incompatibility

From: Date: Sat, 26 Nov 2005 12:32:22 +0000
Subject: list packages structure incompatibility
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40518@lists.php.net to get a copy of this message
i've recently upgrade my PEAR version from 1.3.6 to 1.4.4 and now to 1.4.5 without problem. i've then begun to play a bit with new features of PEAR 1.4.x and found a possible structure incompatibility problem. As PEAR_info package does not return correct result with PEAR 1.4.5 (see bug#6051 http://pear.php.net/bugs/bug.php?id=6051) i've written my own script to test on localhost [1] what was return by PEAR_Registry::listPackages() (see line 10 of my test script) and also each package datas by PEAR_Registry::packageInfo (see line 16 of my test script) with my own installation (42 packages) INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: =========================================
PACKAGE                   VERSION   STATE
Archive_Tar               1.3.1     stable
Config                    1.10.4    stable
Console_Getopt            1.2       stable
DB                        1.7.6     stable
Date                      1.4.6     stable
Event_Dispatcher          1.0.0     stable
HTML_CSS                  1.0.0RC1  beta
HTML_Common               1.2.2     stable
HTML_Page2                0.5.0beta beta
HTML_Progress             1.2.5     stable
HTML_Progress2            2.0.0     stable
HTML_QuickForm            3.2.5     stable
HTML_QuickForm_Controller 1.0.5     stable
HTML_Table                1.6.1     stable
HTML_Template_IT          1.1.2     stable
HTML_Template_Sigma       1.1.3     stable
HTML_TreeMenu             1.2.0     stable
HTTP_Request              1.3.0     stable
Image_Color               1.0.2     stable
Log                       1.9.2     stable
Mail                      1.1.9     stable
Net_FTP                   1.3.1     stable
Net_SMTP                  1.2.7     stable
Net_Socket                1.0.6     stable
Net_URL                   1.0.14    stable
Net_UserAgent_Detect      2.1.0     stable
PEAR                      1.4.5     stable
PEAR_Info                 1.6.0     stable
PEAR_PackageFileManager 1.6.0a4 alpha
PHPUnit                   1.3.1     stable
PHP_Compat                1.4.1     stable
PHP_CompatInfo            1.0.0     stable
Pager                     2.3.4     stable
PhpDocumentor             1.2.3     stable
Text_Highlighter          0.6.5     beta
Var_Dump                  1.0.2     stable
XML_Beautifier            1.1       stable
XML_Parser                1.2.7     stable
XML_RPC                   1.4.4     stable
XML_RSS                   0.9.2     stable
XML_Tree                  1.1       stable
XML_Util                  1.1.1     stable
I thought that the solution was easy (see line 21 of my test script) but it didn't worked for all packages. Perharps a structure incompatibility problem in new PEAR 1.4.x ? Greg ? i got : - 32 packages that return no xsdversion info (see lines 17-19 of my test script) - 38 packages that are supposed installed by a package.xml xsd 1.0 - and only 4 packages that have dual compatibility package.xml xsd 1.0 and 2.0 here are the list on my installation:
    Date
    PEAR
    PEAR_PackageFileManager
    XML_Parser
So i've decided to replace (line 21 by line 22 to fix it). It could be a solution (not the best one) for bug #6051 ! Hope my explains are enough good and clear regards Laurent Laville [1] hilight source code: http://pear.laurent-laville.org/PEAR/registry_listpackages.html

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