Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.7

Bug #11365 Tree class doesnt contains raiseError method
Submitted: 2007-06-19 13:25 UTC
From: agorlov Assigned: dufuz
Status: Closed Package: Tree (version 0.3.0)
PHP Version: 5.1.6 OS: Linux
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 18 + 13 = ?

 [2007-06-19 13:25 UTC] agorlov (Alexandr Gorlov)
Description: ------------ #./test.companyCategory.php PHP Fatal error: Call to undefined method Tree::raiseerror() in /usr/share/pear/Tree/Memory/MDB2nested.php on line 69 Tree class doesnot contains raiseError method. Test script: --------------- === my script: test.companyCategory.php: ==== #!/usr/bin/php <?php require_once '../config.php'; require_once 'Tree/Tree.php'; require_once 'myDB.php'; $mt = new myTreeApp(); $mt->createTree(); class myTreeApp { private $tree = null; public function __construct() { $this->tree = Tree::setup('Memory_MDB2nested', myDB::conn(), array('table' => 'companyCategory')); $this->tree->setup(); } public function createTree() { $rootId = $this->tree->add( array( 'name' => '', ) ); if (PEAR::isError($rootId)) { print 'error adding root element: '.$rootId->getUserInfo(); } } } ===================================================


 [2007-06-19 13:39 UTC] agorlov (Alexandr Gorlov)
Tree.php version (in pear repository): $Id: Tree.php,v 2007/06/01 23:05:38 dufuz Exp $ In CSV: version 1.14 (The method raiseError is defined there!)
 [2007-06-19 13:40 UTC] agorlov (Alexandr Gorlov)
 [2007-06-19 21:25 UTC] dufuz (Helgi ├×ormar)
yeah that version isn't what we have released, only the MDB2 driver is affected, somehow that slipped passed us.
 [2007-06-23 22:37 UTC] dufuz (Helgi ├×ormar)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at