|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4071 | major | always | 06-08-10 08:48 | 06-08-10 08:48 | |
|
|
|||||
| Reporter: | sblommers | Platform: | Linux | ||
| Assigned To: | OS: | Ubuntu | |||
| Priority: | normal | OS Version: | 10.04 | ||
| Status: | new | Product Version: | 4.0.8 | ||
| Product Build: | Resolution: | open | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| 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: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |