Mantis Bugtracker
  

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

- Relationships

- Notes
(0003621)
ferg
12-14-08 11:19

php/3628
 

- Issue History
Date Modified Username Field Change
12-12-08 12:20 koreth New Issue
12-14-08 11:19 ferg Note Added: 0003621
12-14-08 11:19 ferg Assigned To  => ferg
12-14-08 11:19 ferg Status new => closed
12-14-08 11:19 ferg Resolution open => fixed
12-14-08 11:19 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