PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_TreeMenu » Bug #1808

Error with creating tree from XML

Details

Submitted2004-07-06 18:05 UTC
Fromasnagy at php dot net
StatusBogus
PackageHTML_TreeMenu
PHP Version4.3.7
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-06 18:05 UTC] asnagy at php dot net

Description:
------------
There is a bug when creating a new tree from XML with a PEAR::XML_Tree object. In the createFromXML method there is an if statement that looks for the class 'Tree' however a PEAR::XML_Tree object is labled as 'XML_Tree'. This causes the createFromXML method to fail.

Please replace line number 261 with the following:

if (!class_exists('XML_Tree')) {
die('Could not find PEAR::XML_Tree class');
}

[2004-07-06 21:36 UTC] asnagy at php dot net

The documentation is somewhat confusing. Some places it says the Tree pear package ... someplaces it says Richards package. Very confusing.