Mantis Bugtracker
  

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

- Relationships

- Notes
(0001131)
ferg
05-15-06 15:30

php/0422, php/3422
 

- Issue History
Date Modified Username Field Change
05-11-06 22:55 koreth New Issue
05-15-06 15:30 ferg Note Added: 0001131
05-15-06 15:30 ferg Assigned To  => ferg
05-15-06 15:30 ferg Status new => closed
05-15-06 15:30 ferg Resolution open => fixed
05-15-06 15:30 ferg Fixed in Version  => 3.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker