PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Tree » Bug #8235

Value zero

Details

Submitted2006-07-17 17:46 UTC
Frommgerbault at jouve dot fr
StatusSuspended
PackageXML_Tree
PHP Version4.3.0
OSFEDORA
Roadmaps(Not assigned)

Comments

[2006-07-17 17:46 UTC] mgerbault at jouve dot fr

Description:
------------
If a node value is zero, PEAR Parser return a empty string !

Test script:
---------------
$tree = new XML_Tree("exemple_c2.xml");
$tmp= $tree->getTreeFromFile();

Expected result:
----------------
[2] => xml_tree_node Object
(
[attributes] => Array
(
)

[children] => Array
(
)

[content] => 0
[name] => ANS
)

Actual result:
--------------
[2] => xml_tree_node Object
(
[attributes] => Array
(
)

[children] => Array
(
)

[content] =>
[name] => ANS
)