Bug 244073 - The "static" keyword isn't interpreted right
Summary: The "static" keyword isn't interpreted right
Status: RESOLVED DUPLICATE of bug 278085
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: git master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 4.0.1
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 21:35 UTC by Jan Buchar
Modified: 2014-01-19 11:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***