Anonymous | Login | Signup for a new account | 12-17-2024 10:44 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |