| Anonymous | Login | Signup for a new account | 10-25-2025 11:04 PDT |
| 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 | ||||
| 0002014 | [Quercus] | major | sometimes | 09-15-07 17:26 | 09-18-07 10:39 | ||||
| Reporter | hendler | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.1.3 | Product Version | 3.1.2 | ||||
| Product Build | |||||||||
| Summary | 0002014: array_multisort with main key being non-numeric exhibts odd behavior | ||||||||
| Description |
doesn't work in quercus, but works in PHP 5.2 $array_name = array(); $array['n']['x'] = 123; $array['n']['z'] = 123123; $array['b']['x'] = 123; $array['b']['z'] = 234; $array['g']['x'] = 123; $array['g']['z'] = 1; $count_name = 'count'; ${$count_name} = array(); foreach ($array as $key => $row) { ${$count_name}[$key] = $row['z']; } // eval( ' array_multisort($count,SORT_ASC,SORT_NUMERIC,$array); print_r($array);'); |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information |
WORKS: $array = array(); $array[0]['x'] = 123; $array[0]['z'] = 123123; $array[1]['x'] = 123; $array[1]['z'] = 234; $array[2]['x'] = 123; $array[2]['z'] = 1; foreach ($array as $key => $row) { $count[$key] = $row['z']; } // eval( ' array_multisort($count,SORT_ASC,SORT_NUMERIC,$array); print_r($array);'); as does $array_name = array(); $array[0]['x'] = 123; $array[0]['z'] = 123123; $array[1]['x'] = 123; $array[1]['z'] = 234; $array[2]['x'] = 123; $array[2]['z'] = 1; $count_name = 'count'; ${$count_name} = array(); foreach ($array as $key => $row) { ${$count_name}[$key] = $row['z']; } // eval( ' array_multisort($count,SORT_ASC,SORT_NUMERIC,$array); print_r($array);'); |
||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |