PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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
)