Mantis - Quercus
Viewing Issue Advanced Details
1125 minor always 05-18-06 14:06 05-19-06 07:11
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001125: Numeric comparisons don't auto-cast strings
PHP:

<?php
$foo = "-1";
if ($foo && ($foo > 0)) {
        error_log("bad!");
} else {
        error_log("good!");
}
?>

This prints "bad!" under Quercus (running in interpreted mode) and "good!" under Zend PHP.
2006/05/17 snapshot

Notes
(0001149)
koreth   
05-18-06 14:06   
Should be under Quercus (thanks, Mantis)
(0001153)
ferg   
05-19-06 07:11   
php/035a