|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 1103 | minor | always | 05-12-06 20:35 | 05-15-06 15:04 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.0.19 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|
|||||
| 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(). |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||