Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003361 [Quercus] major always 02-26-09 18:14 02-26-09 21:56
Reporter koreth View Status public  
Assigned To nam
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 0003361: String "[]" operator fails to compile
Description <?php
function foo() {
  $x = ' ';
  $x[0] = 'x';
}

Doesn't compile:

[18:12:12.722] {resin-29} com.caucho.java.JavaCompileException: .../_string_22darray__php.java:60: incompatible types
[18:12:12.722] {resin-29} found : com.caucho.quercus.env.Value
[18:12:12.722] {resin-29} required: com.caucho.quercus.env.StringValue
[18:12:12.722] {resin-29} (v_x = v_x.toAutoArray()).put(qv_0_1, qv_x_2);
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003848)
koreth
02-26-09 18:24

Changing the "[]" to "{}" seems to make it work.
 
(0003849)
nam
02-26-09 21:56

php/3492
 

- Issue History
Date Modified Username Field Change
02-26-09 18:14 koreth New Issue
02-26-09 18:24 koreth Note Added: 0003848
02-26-09 21:46 nam Status new => assigned
02-26-09 21:46 nam Assigned To  => nam
02-26-09 21:56 nam Status assigned => closed
02-26-09 21:56 nam Note Added: 0003849
02-26-09 21:56 nam Resolution open => fixed
02-26-09 21:56 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker