|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 1106 | minor | always | 05-12-06 21:44 | 05-15-06 15:20 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.0.19 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|
|||||
| Summary: | 0001106: Modulo operator shouldn't return fractional values | ||||
| Description: |
The "%" operator should always return an integer. In Zend PHP, 1.5 % 2 = 1. In Quercus, 1.5 % 2 = 1.5. (Arguably Quercus is doing the mathematically correct thing, but existing code will break.) <?php print 1.5 % 2; ?> |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||