Mantis - Quercus
Viewing Issue Advanced Details
1658 major always 03-28-07 05:25 03-28-07 10:11
obaltz  
nam  
normal  
closed 3.1.0  
fixed  
none    
none 3.1.1  
0001658: Incompatibility in settype()
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.
<?php
$nothing = null;
settype( $nothing, 'array' );
var_dump( $nothing );
?>

original php engine outputs:
array(0) { }

quercus outputs:
array(1) { [0]=> NULL }

Notes
(0001790)
nam   
03-28-07 10:11   
php/120v