Mantis - Quercus
Viewing Issue Advanced Details
3138 minor always 12-08-08 00:01 12-11-08 13:15
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003138: Integer variable assignment in argument list won't compile
<?php
function x() {
  foo($x = 1);
}

Fails to compile with latest Resin Pro:

[23:58:41.896] {resin-24} com.caucho.java.JavaCompileException: .../WEB-INF/work/_quercus/_html/_test/_arg_22dassignment__php.java:51: cannot find symbol
[23:58:41.896] {resin-24} symbol : method callRef(com.caucho.quercus.env.Env,long)
[23:58:41.896] {resin-24} location: class com.caucho.quercus.program.AbstractFunction
[23:58:41.896] {resin-24} env._fun[f_foo].callRef(env, (v_x = 1L));

Notes
(0003600)
nam   
12-11-08 13:15   
php/3aan