Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1145 | major | always | 05-25-06 09:33 | 05-30-06 09:25 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.20 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|||||
Summary: | 0001145: Can't call static method from static method using "self::" notation | ||||
Description: |
PHP: <?php class testclass { public static function func1() { self::func2(); } protected static function func2() { print "Hi"; } } testclass::func1(); ?> This prints "Hi" on Zend PHP and fails to compile under Quercus. Same error as bug 1099 (which is fixed): com.caucho.java.JavaCompileException: /Users/sgrimm/resin/resin/webapps/test/WEB-INF/work/_quercus/_test__php.java:86: cannot find symbol symbol : variable q_this location: class _quercus._test__php.quercus_testclass env.getClass("testclass").getFunction("func2").evalMethod(env, q_this); ^ 1 error |
||||
Steps To Reproduce: | |||||
Additional Information: | 060522 snapshot | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|