意外> T_STRING,期待T_OLD_FUNCTION或> T_FUNCTION或T_VAR或'}' [英] unexpected > T_STRING, expecting T_OLD_FUNCTION or > T_FUNCTION or T_VAR or '}'

查看:166
本文介绍了意外> T_STRING,期待T_OLD_FUNCTION或> T_FUNCTION或T_VAR或'}'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


解析错误:语法错误,意外的
T_STRING,在
/dir/public_html/site/wp-content/themes/test/category-images/category-images.php $ b $中期待T_OLD_FUNCTION或
T_FUNCTION或T_VAR或} b第37行




  class CategoryImagesII扩展CategoryImagesII_Plugin 
{

protected $ error_codes = array(); // LINE 37
protected $ error_strings = array();


解决方案

我敢打赌它是PHP 4的表现,因为它不认识PHP 5仅保护关键字。


Anything stand out on line 37 or perhaps the way this class constructor is made?

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /dir/public_html/site/wp-content/themes/test/category-images/category-images.php on line 37

class CategoryImagesII extends CategoryImagesII_Plugin
{

protected $error_codes = array(); // LINE 37
protected $error_strings = array();

解决方案

I bet it's PHP 4 acting up, because it does not recognize the PHP 5-only protected keyword.

这篇关于意外> T_STRING,期待T_OLD_FUNCTION或> T_FUNCTION或T_VAR或'}'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆