Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000586 [Quercus] minor always 12-27-05 15:58 12-27-05 18:03
Reporter creich View Status @0@  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000586: Improper handling of associative array within double quotes
Description <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> [^]
<html xmlns="http://www.w3.org/1999/xhtml"> [^]
<head></head>
<body>
<?php
  $fruits = array('red' => 'Apples','yellow' => 'Bananas','beige' => 'Cantaloupes', 'brown' => 'Dates');

  echo "Array element\"1\" = $fruits[red]
";
?>
</body>
</html>

Should output:

Array element "1" = Apples

Instead outputs:

Array element "1" =
Additional Information
Attached Files

- Relationships

- Notes
(0000585)
creich
12-27-05 15:59

can get around this by:

echo "Array element\"1\" = ".$fruits['red']."
";
 
(0000591)
ferg
12-27-05 18:03

php/313j
 

- Issue History
Date Modified Username Field Change
12-27-05 15:58 creich New Issue
12-27-05 15:59 creich Note Added: 0000585
12-27-05 18:03 ferg Status new => closed
12-27-05 18:03 ferg Note Added: 0000591
12-27-05 18:03 ferg Resolution open => fixed
12-27-05 18:03 ferg Fixed in Version  => 3.0.18


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