#23560 [Ver]: XML_Tree -> Call to undefined function: get_node_by_path()

From: Date: Tue, 20 May 2003 13:32:21 +0000
Subject: #23560 [Ver]: XML_Tree -> Call to undefined function: get_node_by_path()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16506@lists.php.net to get a copy of this message
ID: 23560 Updated by: arnaud@php.net Reported By: stefan dot textor at dsi-project dot de Status: Verified Bug Type: PEAR related Operating System: windows XP PHP Version: 4.3.1 New Comment: I had a deeper look today. The inserChild method was added a long time ago and my guess is that it has never been properly tested. Browsing the cvs history i did not see any get_node_by_path method. Inclunding the time when the insertChild method was added. If anybody feels up to the challenge please give it a try. I don't properly understand the class well enough to fix it. Previous Comments: ------------------------------------------------------------------------ [2003-05-09 07:01:15] arnaud@php.net Indeed. I had a wuick look at the code but it goes beyond my comprehension of the package atm. Does somebody feel comfortable enough with this ? ------------------------------------------------------------------------ [2003-05-09 05:31:00] stefan dot textor at dsi-project dot de I have tested the following Script with XML_Tree: require_once 'XML/tree.php'; $tree = new XML_Tree; $root =& $tree->addRoot('root'); $foo =& $root->addChild('foo'); $test = $tree->insertChild('root',0,'test','bla'); header('Content-Type: text/xml'); $tree->dump(); resulting in: Fatal error: Call to undefined function: get_node_by_path() in C:\php4\pear\XML\tree.php on line 138 I used v 1.1 of XML_Tree on PEAR 1.1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23560&edit=1

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