Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001099 [Quercus] major always 05-11-06 17:33 05-15-06 16:32
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.19
Summary 0001099: Can't call static method from another class's static method
Description PHP file:

<?php
class foo1 {
        public static function spit($arg) {
                print $arg;
        }
}

class foo2 {
        public static function test() {
                foo1::spit("hi");
        }
}
?>

This results in an invalid Java file that causes a compilation error:

/Users/sgrimm/resin/resin-3.0.s060510/webapps/test/WEB-INF/work/_quercus/_test__php.java:90: cannot find symbol
symbol : variable q_this
location: class _quercus._test__php.quercus_foo2
      env.getClass("foo1").evalMethod(env, q_this, "spit", _quercus_value_0);
                                           ^
1 error
Additional Information
Attached Files

- Relationships

- Notes
(0001134)
ferg
05-15-06 16:32

php/3968
 

- Issue History
Date Modified Username Field Change
05-11-06 17:33 koreth New Issue
05-15-06 16:32 ferg Note Added: 0001134
05-15-06 16:32 ferg Assigned To  => ferg
05-15-06 16:32 ferg Status new => closed
05-15-06 16:32 ferg Resolution open => fixed
05-15-06 16:32 ferg Fixed in Version  => 3.0.20


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