syntax error, unexpected T_GOTO, expecting T_STRING

后端 未结 2 1061
闹比i
闹比i 2020-12-12 01:06

I moved my website to another host. The previous php version is 5.2 and now is 5.3 When I login to my website, it shows the error:

Parse error: syntax error,         


        
相关标签:
2条回答
  • 2020-12-12 01:08

    rename your function to something other than "goto". That is a reserved name.

    0 讨论(0)
  • 2020-12-12 01:14

    For better or worse, goto is a reserved word in PHP 5.3.

    http://php.net/manual/en/control-structures.goto.php

    0 讨论(0)
提交回复
热议问题