Anonymous | Login | Signup for a new account | 12-17-2024 10:57 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003163 | [Quercus] | trivial | always | 12-12-08 12:20 | 12-14-08 11:19 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
Product Build | |||||||||
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 | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |