syntax error, unexpected T_STATIC
<p>I have this error while trying to use late static bindings. All I can find in google about this error is that people didn't have PHP5.3, but I have version 5.3.6. </p>

<p>Could someone help me please ? </p>

<p>Thanks</p>

<pre><code>class Media
{
    private $nom,
            $ext;

    public function ext_autorisees() { return array(); }

    public function __construct( $fichier, $thumb = false )
    {
        $fichier = explode( ".", $fichier );

        $nom = $fichier[0];
        $ext = $fichier[1];

        if( in_array( strtoupper( $ext ), static::ext_autorisees() ) )
        {
            if( strpos( $nom, "thumb_" ) === 0 &amp;&amp; !$thumb )
                throw new Exception("");
        }
        else
            throw new Exception("");

        $this-&gt;nom = $nom;
        $this-&gt;ext = $ext;
    }

    public function getNom() { return $this-&gt;nom; }
    public function getExt() { return $this-&gt;ext; }
    public function getPath() { return $this-&gt;getNom() . "." . $this-&gt;getExt(); }
    public function getThumb() { return "thumb_" . $this-&gt;getPath(); }

}
</code></pre>
