| Anonymous | Login | Signup for a new account | 10-24-2025 14:39 PDT |
| 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 | ||||
| 0001103 | [Quercus] | minor | always | 05-12-06 20:35 | 05-15-06 15:04 | ||||
| Reporter | koreth | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 3.0.19 | ||||||
| Summary | 0001103: array_merge() doesn't deal properly with NULL argument (w/fix) | ||||||||
| Description |
<?php $array = array_merge((array)NULL, (array)NULL); var_dump($array); ?> Quercus outputs an array of two NULL elements. Normal PHP outputs an empty array. Fix is to replace if (! (arg.toValue() instanceof ArrayValue)) with if (! (arg.toValue() instanceof ArrayValue) || arg.toValue().isNull()) in ArrayModule.array_merge(). |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed. 28 unique queries executed. |