Mantis - Quercus
Viewing Issue Advanced Details
1179 major always 06-05-06 17:55 06-09-06 14:27
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001179: Conversion of strings to integers leaves numbers in bad state in compiled code
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.

Notes
(0001275)
ferg   
06-09-06 14:27   
php/3306