|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 1100 | major | always | 05-11-06 22:55 | 05-15-06 15:30 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.0.19 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|
|||||
| 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: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||