Login   Register  
PHP Classes
elePHPant
Icontem

package broken

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Ternary Search Tree  >  All threads  >  package broken  >  (Un) Subscribe thread alerts  
Subject:package broken
Summary:search breaks
Messages:2
Author:Frederick
Date:2012-07-12 13:39:25
 

  1. package broken   Reply   Report abuse  
Picture of Frederick
Frederick
2012-07-12 13:39:26
changing the example to contain $tree->Search ( "Mario" );

produces:

ANTEEHEM
PHP Fatal error: Call to a member function fetch() on a non-object in /var/www/Karma/Classes/TernaryTree.php on line 88

  2. Re: package broken   Reply   Report abuse  
Picture of Chi  Hoang
Chi Hoang
2014-12-11 20:25:36 - In reply to message 1 from Frederick
Can you try to add $tree->Insert ( "Marioo" ); to the tree and repeat the search? Thank you!