Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.1 Product Version 3.1.0
  Product Build
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 }
Attached Files

- Relationships

- Notes
(0001790)
nam
03-28-07 10:11

php/120v
 

- Issue History
Date Modified Username Field Change
03-28-07 05:25 obaltz New Issue
03-28-07 05:29 obaltz Issue Monitored: obaltz
03-28-07 10:04 nam Status new => assigned
03-28-07 10:04 nam Assigned To  => nam
03-28-07 10:11 nam Status assigned => closed
03-28-07 10:11 nam Note Added: 0001790
03-28-07 10:11 nam Resolution open => fixed
03-28-07 10:11 nam Fixed in Version  => 3.1.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker