<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>244073</bug_id>
          
          <creation_ts>2010-07-09 21:35:26 +0000</creation_ts>
          <short_desc>The &quot;static&quot; keyword isn&apos;t interpreted right</short_desc>
          <delta_ts>2014-01-19 11:06:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>Language Support: PHP</component>
          <version>git master</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>278085</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0.1</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jan Buchar">Teyras</reporter>
          <assigned_to>kdevelop-bugs-null</assigned_to>
          <cc>pprkut</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>988019</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Buchar">Teyras</who>
    <bug_when>2010-07-09 21:35:26 +0000</bug_when>
    <thetext>Version:           SVN (using KDE 4.4.4) 
OS:                Linux

Any use of the &quot;static&quot; 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:
&lt;?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 &quot;B&quot;
?&gt;

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1425693</commentid>
    <comment_count>1</comment_count>
    <who name="Heinz Wiesinger">pprkut</who>
    <bug_when>2014-01-19 11:06:00 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 278085 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>