|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3163 | trivial | always | 12-12-08 12:20 | 12-14-08 11:19 | |
|
|
|||||
| 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: | 0003163: Multiple expressions in "for" cause compile failure | ||||
| Description: |
<?php function foo() { for ($y=30; printf("\n"), $C = $y*0.1 - 1.5, $y--;); } This runs in interpreted mode. It fails to compile, though: [12:18:24.598] {resin-26} com.caucho.java.JavaCompileException: .../_for_22dcomma__php.java:55: ')' expected [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:55: ';' expected [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:55: illegal start of expression [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:55: illegal start of expression [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:55: ';' expected [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:55: ';' expected [12:18:24.598] {resin-26} env.comma(env.comma(LongValue.create(com.caucho.quercus.lib.string.StringModule.printf(env, qv__1, Value.NULL_ARGS)), new DoubleValue(v_C)v_C = ((v_y * 0.1) - 1.5))), LongValue.create((v_y--))).toBoolean(); [12:18:24.598] {resin-26} ^ [12:18:24.598] {resin-26} .../_for_22dcomma__php.java:56: illegal start of expression [12:18:24.598] {resin-26} ) { [12:18:24.598] {resin-26} ^ |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||