Mantis - Quercus
Viewing Issue Advanced Details
1099 major always 05-11-06 17:33 05-15-06 16:32
koreth  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.0.20  
0001099: Can't call static method from another class's static method
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

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