| Anonymous | Login | Signup for a new account | 10-29-2025 11:07 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 | ||||
| 0001658 | [Quercus] | major | always | 03-28-07 05:25 | 03-28-07 10:11 | ||||
| Reporter | obaltz | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 3.1.0 | ||||||
| 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. |
||||||||
| Additional Information |
<?php $nothing = null; settype( $nothing, 'array' ); var_dump( $nothing ); ?> original php engine outputs: array(0) { } quercus outputs: array(1) { [0]=> NULL } |
||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |