Mantis - Quercus
Viewing Issue Advanced Details
3371 minor always 03-05-09 11:05 03-06-09 13:12
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003371: Explicit string cast of indexed character assignment rvalue causes compile error
<?php
$x = 'abc';
$x{1} = (string)'a';

Fails to compile:

[11:03:32.516] {resin-20} com.caucho.java.JavaCompileException: .../_stringchar__php.java:45: setCharValueAt(long,com.caucho.quercus.env.Value) in com.caucho.quercus.env.Value cannot be applied to (long,java.lang.String)
[11:03:32.516] {resin-20} v_x.set(v_x.get().setCharValueAt(1L,qv_a_1.toString(env).toString()));

Notes
(0003864)
nam   
03-05-09 12:06   
php/313v
(0003866)
nam   
03-06-09 13:12   
php/013v