Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004071 [Quercus] major always 06-08-10 08:48 06-08-10 08:48
Reporter sblommers View Status public  
Assigned To
Priority normal Resolution open Platform Linux
Status new   OS Ubuntu
Projection none   OS Version 10.04
ETA none Fixed in Version Product Version 4.0.8
  Product Build
Summary 0004071: Creating array with "string" as key dissappears
Description When creating array(null => 1, false => 2, true => 3, 4.6 => 4, "08" => 5, "8" => 6);

"08" seems to dissapear.
Steps To Reproduce <?php
$array = array(null => 1, false => 2, true => 3, 4.6 => 4, "08" => 5, "8" => 6);
var_export($array);
var_dump($array);

echo count($array);

echo "
null is " . (array_key_exists(null, $array) ? '' : 'not ') . "a key.\n";
echo '
false is ' . (array_key_exists(false, $array) ? '' : 'not ') . "a key.\n";
echo '
true is ' . (array_key_exists(true, $array) ? '' : 'not ') . "a key.\n";
echo '
4.6 is ' . (array_key_exists(4.6, $array) ? '' : 'not ') . "a key.\n";
echo '
"08" is ' . (array_key_exists("08", $array) ? '' : 'not ') . "a key.\n";
echo '
"8" is ' . (array_key_exists("8", $array) ? '' : 'not ') . "a key.\n";
?>
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
06-08-10 08:48 sblommers New Issue


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