Mantis - Quercus
Viewing Issue Advanced Details
3153 minor always 12-11-08 21:32 12-12-08 08:59
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003153: Character index fails to compile
<?php
function foo() {
  $x = 'test';
  $y = $x{0};
}

Fails to compile under latest Resin Pro:

[21:31:20.679] {resin-8} com.caucho.java.JavaCompileException: ...__php.java:56: incompatible types
[21:31:20.679] {resin-8} found : com.caucho.quercus.env.Value
[21:31:20.679] {resin-8} required: com.caucho.quercus.env.StringValue
[21:31:20.679] {resin-8} v_y = v_x.charValueAt(0L);

Notes
(0003606)
nam   
12-12-08 08:59   
php/33mi