| Anonymous | Login | Signup for a new account | 10-28-2025 00:41 PDT |
| Main | My View | View Issues | Change Log | Docs |
| 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 | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |