Mantis - Quercus
Viewing Issue Advanced Details
2850 major always 08-15-08 23:30 08-20-08 12:32
koreth  
nam  
normal  
closed 3.2.0  
fixed  
none    
none 3.2.1  
0002850: Can't compile function that calls func_get_args()
<?php
function dazzle() {
  $argv = func_get_args();
}

This fails to compile:

[23:28:15.574] {resin-1} com.caucho.java.JavaCompileException: .../_test__php.java:37: cannot find symbol
[23:28:15.574] {resin-1} symbol : class fun_dazzle
[23:28:15.574] {resin-1} location: class _quercus._test__php
[23:28:15.574] {resin-1} public static final fun_dazzle fun_dazzle_0 = new fun_dazzle_0();
[23:28:15.574] {resin-1} ^
[23:28:15.574] {resin-1} 1 error

Looks like the generated Java code is missing the integer suffix on the class name.

Notes
(0003340)
nam   
08-20-08 12:32   
php/3766