Mantis - Quercus
Viewing Issue Advanced Details
3326 minor always 02-06-09 23:06 02-07-09 07:16
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003326: Boolean assignment in reference argument fails to compile
<?php
function foo(&$a) { }
function bar() { foo($b=false); }

Fails to compile:

[23:05:34.632] {resin-22} com.caucho.java.JavaCompileException: .../_boolean_22darg__php.java:80: cannot find symbol
[23:05:34.632] {resin-22} symbol : method call(com.caucho.quercus.env.Env,boolean)
[23:05:34.632] {resin-22} location: class com.caucho.quercus.function.AbstractFunction
[23:05:34.632] {resin-22} env._fun[f_foo].call(env, v_b = false);
[23:05:34.632] {resin-22} ^

Notes
(0003812)
nam   
02-07-09 07:16   
php/33d9