Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001145 [Quercus] major always 05-25-06 09:33 05-30-06 09:25
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.20 Product Version 3.0.20
  Product Build
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
Attached Files

- Relationships

- Notes
(0001247)
ferg
05-30-06 09:25

php/3969
 

- Issue History
Date Modified Username Field Change
05-25-06 09:33 koreth New Issue
05-30-06 09:25 ferg Note Added: 0001247
05-30-06 09:25 ferg Assigned To  => ferg
05-30-06 09:25 ferg Status new => closed
05-30-06 09:25 ferg Resolution open => fixed
05-30-06 09:25 ferg Fixed in Version  => 3.0.20
11-28-06 08:23 alexcrown Issue Monitored: alexcrown


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