Anonymous | Login | Signup for a new account | 12-17-2024 08:54 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 | ||||
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 | ||||||
Status | closed | Product Version | 3.0.19 | ||||||
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] |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |