Mantis - Quercus
Viewing Issue Advanced Details
3159 minor always 12-12-08 09:13 12-13-08 00:06
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003159: Chained assignment of string expression won't compile
<?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();

Notes
(0003617)
nam   
12-13-08 00:06   
php/3aaq