Mantis - Quercus
Viewing Issue Advanced Details
3327 minor always 02-06-09 23:11 02-07-09 07:16
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003327: Integer variable assignment in argument list won't compile
<?php
function foo() {
  $x = array_chunk(array(1, 2, 3), $y = 3);
}

Fails to compile:

[23:09:41.991] {resin-12} com.caucho.java.JavaCompileException: .../_array_0chunk__php.java:58: unexpected type
[23:09:41.991] {resin-12} required: variable
[23:09:41.991] {resin-12} found : value
[23:09:41.991] {resin-12} v_x = _quercus_module_0.array_chunk(env, new ArrayValueImpl().append(qv_1_1).append(qv_2_2).append(qv_3_3).toArrayValue(env), (int) v_y = 3L, DefaultValue.DEFAULT.toBoolean());

Notes
(0003811)
nam   
02-07-09 07:16   
php/33da