Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003159 [Quercus] minor always 12-12-08 09:13 12-13-08 00:06
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product 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();
Additional Information
Attached Files

- Relationships

- Notes
(0003617)
nam
12-13-08 00:06

php/3aaq
 

- Issue History
Date Modified Username Field Change
12-12-08 09:13 koreth New Issue
12-12-08 11:24 nam Status new => assigned
12-12-08 11:24 nam Assigned To  => nam
12-13-08 00:06 nam Status assigned => closed
12-13-08 00:06 nam Note Added: 0003617
12-13-08 00:06 nam Resolution open => fixed
12-13-08 00:06 nam 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