Mantis - Quercus
Viewing Issue Advanced Details
3291 major always 01-21-09 21:51 01-22-09 10:38
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003291: Variable assignment in argument fails to compile
<?php
function foo() {
  $x = array();
  array_chunk($x, $y = 2);
}

Fails to compile:

[21:49:50.716] {resin-22} com.caucho.java.JavaCompileException: .../_array_0chunk_02__php.java:61: unexpected type
[21:49:50.716] {resin-22} required: variable
[21:49:50.716] {resin-22} found : value
[21:49:50.716] {resin-22} _quercus_module_0.array_chunk(env, v_x.toValue().toArrayValue(env), (int) v_y = 2L, DefaultValue.DEFAULT.toBoolean());

Notes
(0003775)
nam   
01-22-09 10:38   
php/3aas