Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003179 [Quercus] minor always 12-15-08 12:00 12-15-08 13:43
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003179: Assignment with comparison operator fails to compile
Description <?php
function foo() {
  $arr = array();
  if (($foo = count($arr)) < 1) {
    print "yo\n";
  }
}

Fails to compile under the latest Resin Pro:

[11:59:29.981] {resin-38} com.caucho.java.JavaCompileException: .../_lt__php.java:56: operator < cannot be applied to com.caucho.quercus.env.Value,double
[11:59:29.981] {resin-38} if (((v_foo = LongValue.create(ArrayModule.count(env, v_arr, false))) < 1.0)) {
Additional Information
Attached Files

- Relationships

- Notes
(0003644)
ferg
12-15-08 13:43

php/3aar
 

- Issue History
Date Modified Username Field Change
12-15-08 12:00 koreth New Issue
12-15-08 13:43 ferg Note Added: 0003644
12-15-08 13:43 ferg Assigned To  => ferg
12-15-08 13:43 ferg Status new => closed
12-15-08 13:43 ferg Resolution open => fixed
12-15-08 13:43 ferg Fixed in Version  => 4.0.0


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