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 » Web Services » Services_Amazon » Bug #7052

Forcing Enumeration On XML

Details

Request #7052Forcing Enumeration On XML
Submitted2006-03-07 15:37 UTC
Fromseth at pricepages dot org
StatusDuplicate
PackageServices_Amazon
PHP Version5.1.2
OSMac
Roadmaps(Not assigned)

Comments

[2006-03-07 15:37 UTC] seth at pricepages dot org

Description:
------------
If at all possible, I would like to use the forceEnum option
on the XML_Unserializer. This would save quite a bit of
confusion and if statements. My constructor in ECS4
currently looks like this:

$xml = &new XML_Unserializer(array(
'parseAttributes' => true,
'forceEnum'=>array
('Item','Review','EditorialReview','Author')));

This makes my code much easier to write when I don't have to
decide whether each child is an array or a single item. It
will also reduce the number of bugs.

[2006-05-20 10:27 UTC] ttsuruoka at php dot net

This has been fixed in 0.5.0.

http://pear.php.net/bugs/bug.php?id=6430

Thank you.