My system is using ubuntu 12.10 and apache 2.2.22 and using doctrince 2.4. I updated my Php from 5.4.x to 5.5.38. But i still countered this error:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /var/www/xxxxxx/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php on line 62
At first, i thought it was my php 5.4 caused and then i updated php to 5.5.38. Yet i still get this error. I really have no idea how to fix it. I can't update Ubuntu's packages from outside of the server. Please someone help me.