Mantis - Quercus
Viewing Issue Advanced Details
1177 minor always 06-05-06 17:24 06-09-06 15:15
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001177: Calling parent class method with more than 5 arguments using "parent::" results in bad Java code
PHP:

<?php
class c1 { }
class c2 extends c1 {
        function x() {
                parent::x(1,2,3,4,5,6);
        }
}
?>

This fails to compile because the Java code has an extra ")":

[17:20:06.656] com.caucho.java.JavaCompileException: /Users/sgrimm/resin/resin/webapps/test/WEB-INF/work/_quercus/_test__php.java:91: ';' expected
[17:20:06.656] env.getClass("c1").getFunction("x").callMethod(env, q_this, new Value[] {_quercus_value_0, _quercus_value_1, _quercus_value_2, _quercus_value_3, _quercus_value_4, _quercus_value_5}));
[17:20:06.656] ^
[17:20:06.656] 1 error

If you remove one of the arguments, it compiles just fine.
060602 snapshot

Notes
(0001266)
koreth   
06-05-06 17:25   
Oh, I should add that using "c1::x" rather than "parent::x" does not cause the problem either.
(0001277)
ferg   
06-09-06 15:15   
php/3955