Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003291 [Quercus] major always 01-21-09 21:51 01-22-09 10:38
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003291: Variable assignment in argument fails to compile
Description <?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());
Additional Information
Attached Files

- Relationships

- Notes
(0003775)
nam
01-22-09 10:38

php/3aas
 

- Issue History
Date Modified Username Field Change
01-21-09 21:51 koreth New Issue
01-22-09 10:38 nam Status new => assigned
01-22-09 10:38 nam Assigned To  => nam
01-22-09 10:38 nam Status assigned => closed
01-22-09 10:38 nam Note Added: 0003775
01-22-09 10:38 nam Resolution open => fixed
01-22-09 10:38 nam Fixed in Version  => 4.0.0


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