Anonymous | Login | Signup for a new account | 12-17-2024 08:31 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product 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} ^ |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |