PHP Classes

Error

Recommend this page to a friend!

      PHP Enum Const  >  All threads  >  Error  >  (Un) Subscribe thread alerts  
Subject:Error
Summary:T_PAAMAYIM_NEKUDOTAYIM
Messages:2
Author:Alex Ivanoff
Date:2014-05-22 13:27:46
Update:2014-05-22 14:11:44
 

  1. Error   Reply   Report abuse  
Picture of Alex Ivanoff Alex Ivanoff - 2014-05-22 13:27:46
Hello! When trying to execute the test script EnumTest.php, I get the error:

PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in Enum.php on line 263

It's about the string

if ($cls_name::$is_initialized) return true;

in protected static function initialize().

  2. Re: Error   Reply   Report abuse  
Picture of Alex Ivanoff Alex Ivanoff - 2014-05-22 14:11:44 - In reply to message 1 from Alex Ivanoff
Oh, my PHP is older than 5.3, this is the reason.