Bug 244073

Summary: The "static" keyword isn't interpreted right
Product: [Applications] kdevelop Reporter: Jan Buchar <Teyras>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: pprkut
Priority: NOR    
Version: git master   
Target Milestone: 4.0.1   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan Buchar 2010-07-09 21:35:26 UTC
Version:           SVN (using KDE 4.4.4) 
OS:                Linux

Any use of the "static" keyword (http://php.net/manual/en/language.oop5.late-static-bindings.php - also the source of the example) is considered a syntax error.

An example:
<?php
class A {
    public static function who() {
        echo __CLASS__;
    }
    public static function test() {
        static::who(); // Here comes Late Static Bindings - now considered a syntax error 
    }
}

class B extends A {
    public static function who() {
        echo __CLASS__;
    }
}

B::test(); // prints "B"
?>

Reproducible: Always
Comment 1 Heinz Wiesinger 2014-01-19 11:06:00 UTC

*** This bug has been marked as a duplicate of bug 278085 ***