Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001179 [Quercus] major always 06-05-06 17:55 06-09-06 14:27
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.20 Product Version 3.0.20
  Product Build
Summary 0001179: Conversion of strings to integers leaves numbers in bad state in compiled code
Description PHP:

<?php
$y = "" + 1;
print $y . " " . ($y + 1);
?>

In interpreted mode, this prints "1 2" (as it does in Zend PHP). Once it's compiled, the output is "1 1". This also happens if the first line is "$y = $x + 1;" (where $x is undefined). If you change the first line to "$y = 1;" or "$y = '1';" then it works fine in both modes.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001275)
ferg
06-09-06 14:27

php/3306
 

- Issue History
Date Modified Username Field Change
06-05-06 17:55 koreth New Issue
06-09-06 14:27 ferg Note Added: 0001275
06-09-06 14:27 ferg Assigned To  => ferg
06-09-06 14:27 ferg Status new => closed
06-09-06 14:27 ferg Resolution open => fixed
06-09-06 14:27 ferg Fixed in Version  => 3.0.20


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