Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001125 [Quercus] minor always 05-18-06 14:06 05-19-06 07:11
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.20
Summary 0001125: Numeric comparisons don't auto-cast strings
Description 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.
Additional Information 2006/05/17 snapshot
Attached Files

- Relationships

- Notes
(0001149)
koreth
05-18-06 14:06

Should be under Quercus (thanks, Mantis)
 
(0001153)
ferg
05-19-06 07:11

php/035a
 

- Issue History
Date Modified Username Field Change
05-18-06 14:06 koreth New Issue
05-18-06 14:06 koreth Note Added: 0001149
05-18-06 16:19 ferg Project Resin => Quercus
05-19-06 07:11 ferg Note Added: 0001153
05-19-06 07:11 ferg Assigned To  => ferg
05-19-06 07:11 ferg Status new => closed
05-19-06 07:11 ferg Resolution open => fixed
05-19-06 07:11 ferg Fixed in Version  => 3.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker