Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001177 [Quercus] minor always 06-05-06 17:24 06-09-06 15:15
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.20
Summary 0001177: Calling parent class method with more than 5 arguments using "parent::" results in bad Java code
Description 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.
Additional Information 060602 snapshot
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
06-05-06 17:24 koreth New Issue
06-05-06 17:25 koreth Note Added: 0001266
06-09-06 15:15 ferg Note Added: 0001277
06-09-06 15:15 ferg Assigned To  => ferg
06-09-06 15:15 ferg Status new => closed
06-09-06 15:15 ferg Resolution open => fixed
06-09-06 15:15 ferg Fixed in Version  => 3.0.20


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