Anonymous | Login | Signup for a new account | 11-22-2024 05:14 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0005221 | [Quercus] | major | always | 09-20-12 06:34 | 09-20-12 06:34 | |||||||
Reporter | jamnikr | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | Platform | ||||||||
Status | new | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | 4.0.31 | ||||||||
Product Build | ||||||||||||
Summary | 0005221: SimpleXMLElement count return always 0 | |||||||||||
Description |
I use Tomcat 7 and Quercus 4.0.31. I was trying using XML obejct which is transformate in PHP to SimpleXMLElement. When I use method count on this object I get a wrong response. Simple test from PHP.net <?php $xml = '<example xmlns:foo="my.foo.urn"> <foo:a>Apple</foo:a> <foo:b>Banana</foo:b> <c>Cherry</c> </example>'; $sxe = new SimpleXMLElement($xml); $kids = $sxe->children('foo'); var_dump(count($kids)); $kids = $sxe->children('foo', TRUE); var_dump(count($kids)); $kids = $sxe->children('my.foo.urn'); var_dump(count($kids)); $kids = $sxe->children('my.foo.urn', TRUE); var_dump(count($kids)); $kids = $sxe->children(); var_dump(count($kids)); ?> right should be: int(0) int(2) int(2) int(0) int(1) but now is int(0) int(0) int(0) int(0) int(0) |
|||||||||||
Steps To Reproduce | ||||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Issue History | |||
Date Modified | Username | Field | Change |
09-20-12 06:34 | jamnikr | New Issue | |
09-20-12 06:37 | jamnikr | Issue Monitored: jamnikr |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed. 24 unique queries executed. |