#23560 [Com]: XML_Tree -> Call to undefined function: get_node_by_path()
| From: | rene at reneschmidt dot de | Date: | Sun, 29 Jun 2003 10:59:03 +0000 |
| Subject: | #23560 [Com]: 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-17836@lists.php.net to get a copy of this message | ||
ID: 23560
Comment by: rene at reneschmidt dot de
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:
Wasn't PEAR supposed to include only well-tested and
well-written code? How comes this issue hasn't been sorted
out yet... Makes my angry because now I'm stuck because of
this bug and I have to work around it. I'll let you know
if I was successful...
screne
Previous Comments:
------------------------------------------------------------------------
[2003-05-20 08:32:21] arnaud@php.net
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.
------------------------------------------------------------------------
[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