Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3179 | minor | always | 12-15-08 12:00 | 12-15-08 13:43 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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)) { |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|