Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004318 [Quercus] minor always 12-07-10 13:00 12-07-10 17:53
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.14
Summary 0004318: SimpleXMLElement count
Description (rep by Homayoun Zariv)

We are running into another issue with Quercus. We have a SimpleXMLElement object ($cathist->categoryHistogram see var_dump below) and when we invoke the count function (see below statements) it returns only 1. On a pure PHP count function returns the count of elements in the xml. By the way when we switched to using foreach instead of getting the count and for loop then Quercus is working. I would like to ask why the count function is not working as expected in Quercus?

$len = count($cathist->categoryHistogram);
for ($i = 0; $i < $len; $i++) {
    $cat = $cathist->categoryHistogram[$i];
    .....
}

Var_dump for ($cathist->categoryHistogram)
Additional Information
Attached Files

- Relationships

- Notes
(0004866)
ferg
12-07-10 17:53

php/1x28
 

- Issue History
Date Modified Username Field Change
12-07-10 13:00 ferg New Issue
12-07-10 17:53 ferg Note Added: 0004866
12-07-10 17:53 ferg Assigned To  => ferg
12-07-10 17:53 ferg Status new => closed
12-07-10 17:53 ferg Resolution open => fixed
12-07-10 17:53 ferg Fixed in Version  => 4.0.14


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker