Mantis - Quercus
Viewing Issue Advanced Details
1106 minor always 05-12-06 21:44 05-15-06 15:20
koreth  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.0.20  
0001106: Modulo operator shouldn't return fractional values
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;
?>

Notes
(0001130)
ferg   
05-15-06 15:20   
php/0323, php/3323