Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1658 | major | always | 03-28-07 05:25 | 03-28-07 10:11 | |
|
|||||
Reporter: | obaltz | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|||||
Summary: | 0001658: Incompatibility in settype() | ||||
Description: |
Calling settype( $arr, 'array' ) with $arr being unset or null causes a different result than the original php engine (tested with PHP 5.2 on win 2k). See Additional Information for a demo script. When iterating $arr, one loop will be done although there is nothing to iterate. |
||||
Steps To Reproduce: | |||||
Additional Information: |
<?php $nothing = null; settype( $nothing, 'array' ); var_dump( $nothing ); ?> original php engine outputs: array(0) { } quercus outputs: array(1) { [0]=> NULL } |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|