Anonymous | Login | Signup for a new account | 12-17-2024 11:51 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 | ||||
0001100 | [Quercus] | major | always | 05-11-06 22:55 | 05-15-06 15:30 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.0.20 | Product Version | 3.0.19 | ||||
Product Build | |||||||||
Summary | 0001100: Division or modulo expressions don't work as array indexes | ||||||||
Description |
PHP file: <?php $foo[0] = "a"; $foo[1] = "b"; $foo[2] = "c"; print "constant [" . $foo[2] . "] "; print "add [" . $foo[1 + 1] . "] "; print "subtract [" . $foo[3 - 1] . "] "; print "multiply [" . $foo[2 * 1] . "] "; print "divide [" . $foo[2 / 1] . "] "; print "modulo [" . $foo[5 % 3] . "] "; print "modulo as string [" . $foo["" . (5 % 3)] . "] "; ?> This should print "c" on all the lines, but it doesn't: constant [c] add [c] subtract [c] multiply [c] divide [] modulo [] modulo as string [c] |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |