Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3159 | minor | always | 12-12-08 09:13 | 12-13-08 00:06 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | 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: | 0003159: Chained assignment of string expression won't compile | ||||
Description: |
<?php function messup() { $foo = $bar = 'a' . str_replace('x', 'q', 'xyz'); } Fails to compile under the latest Resin Pro: [09:12:17.032] {resin-14} com.caucho.java.JavaCompileException: .../_chained_22dassignment__php.java:53: incompatible types [09:12:17.032] {resin-14} found : com.caucho.quercus.env.Value [09:12:17.032] {resin-14} required: com.caucho.quercus.env.StringValue [09:12:17.032] {resin-14} v_foo = (v_bar = new StringBuilderValue(_qc_a, com.caucho.quercus.lib.string.StringModule.str_replace(env, qv_x_1, qv_q_2, qv_xyz_3, Env.toRef(DefaultValue.DEFAULT)))).copy(); |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|